jap-core
New features
- Add
JapErrorCode
enumeration class to manage exception codes and exception prompts - Add
JapResponse
class to standardize interface return content - Add
JapTokenHelper
class to manage user tokens uniformly - Add
JapContext
class to maintain jap context information - Add
JapAuthentication
class, unified management of login status information and jap context information
Modified
- Package structure
- Move
AuthenticateConfig
,JapConfig
tocom.fujieid.jap.core.config
package - Move
JapUtil
tocom.fujieid.jap.core.util
package
- Move
- delete
- Delete
JapCacheContextHolder
- Delete
JapUserStoreContextHolder
- Delete
- Code
- Refactored
AbstractJapStrategy
, introducedJapContext
andJapAuthentication
classes - Refactor the
JapConfig
class, only retain thesso
andssoConfig
attributes, and add thetokenExpireTime
andcacheExpireTime
attributes at the same time - Modify the default validity period of the cache in
JapCacheConfig
to 7 days - Modify the default content in the
JapUserService
interface class - Add the
void remove key( string key)
method toJapCache
- Add
errorCode
anderrorMessage
attributes inJapException
to facilitate the processing of exception information into unified format return data - Add the
token
attribute toJapUser
, and the jap token will be automatically returned after login - In the
JapStrategy
interface, the return type of theauthenticate
method is changed toJapResponse
, and the strategy methods of all modules return data in a unified format - Mark the
redirect
method with@Deprecated
in theJapUtil
class, and it may be deleted in the future. At the same time add thecreateToken
method
- Refactored
jap-oauth2
- Modify the
authenticate
method ofOauth2Strategy
to returnJapResponse
jap-oidc
- Modify the
authenticate
method ofOidcStrategy
to returnJapResponse
jap-simple
- Modify the
authenticate
method ofSimpleStrategy
to returnJapResponse
jap-social
- Modify the
authenticate
method ofSocialStrategy
to returnJapResponse
jap-sso
- Modify the return value of the
JapSsoHelper#login
method to the jap token of the current user - Add
JapSsoUtil
- In the
japSsoConfig
class, delete thelogin url
andlogout url
attributes
Other
- Add some unit tests