FileAuthStore

csw.aas.installed.scaladsl.FileAuthStore
class FileAuthStore(storePath: Path) extends AuthStore

File based implementation for csw.aas.installed.api.AuthStore Stores access token, id token and refresh token in local file system inside provided directory

Attributes

Graph
Supertypes
trait AuthStore
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def clearStorage(): Unit

remove all the tokens from store one of the use case for this is, on logout - clear store

remove all the tokens from store one of the use case for this is, on logout - clear store

Attributes

Definition Classes

Attributes

Returns

access token string if it is present in store

Definition Classes
override def getIdTokenString: Option[String]

Attributes

Returns

id token string if it is present in store

Definition Classes

Attributes

Returns

refresh token string if it is present in store

Definition Classes
override def saveTokens(idToken: String, accessToken: String, refreshToken: String): Unit

store all tokens received from auth server as a part of login process or token refresh activity

store all tokens received from auth server as a part of login process or token refresh activity

Value parameters

accessToken

token that can be used by an application to access an API. They inform the API that the bearer of the token has been authorized to access the API and perform specific actions specified by the scope that has been granted.

idToken

token that contains user profile information (like the user's name, email, and so forth), represented in the form of claims

refreshToken

token that can be used to obtain a renewed access token. You can request new access tokens until the refresh token is expired.

Attributes

Definition Classes