Applications are the web, mobile, embedded or backend apps that you want to connect with Quasr for login and access control. As we follow OAuth 2.0 and OpenID Connect standards these will be OAuth 2.0 clients.
An OAuth 2.0 client can either act on behalf of a user or on its own behalf - the latter is referred to as Machine-to-Machine (M2M) or Service-to-Service (S2S). If the client is acting on behalf of a user you have the following options (for a client acting on its own behalf, see Machine (M2M)):
Clients will be by default internal but you can also create external clients. These reflect clients that don't belong to your organization, such as 3rd party apps, and have the following effects:
All clients have the following general configuration options:
label: string) - Textual label returned from the Authentication API to the Login UI.status: string) - The current status of the client. If disabled, the client can't be used and all claims, enrollments, rules, permissions and consents will be locked - also tracked tokens will be revoked. Disable a client that shouldn't be used for now, but lock a client that is compromised or misbehaving - see Locking below for the difference.config.internal: boolean) - Indicates whether the client is internal, i.e. part of your organization.config.scopes: string[]) - Indicates which OAuth 2.0 scopes the client is allowed to request.config.grant_types: string[]) - These are the allowed OAuth 2.0 grant types. Valid values are authorization_code, urn:ietf:params:oauth:grant-type:jwt-bearer, client_credentials and/or refresh_token.authorization_code) is to be used for most applications and represents a standard browser-based flow allowing users to login to your application. It allows your application to receive both an ID and access token for the user.urn:ietf:params:oauth:grant-type:jwt-bearer) is an exceptional API flow allowing users to login to your application. It allows your application to receive both an ID and access token for the user.client_credentials) is a standard API flow allowing the client to receive tokens on its own behalf. It allows your application to receive an access token for itself (not a user).refresh_token) is an optional add-on to the above grant types allowing users to remain logged-in to your application for longer periods. It allows your application to receive a new access token for the user without their involvement.config.login_uri: string) - The URL of your login page. Defaults to the Login UI of your tenant. Only relevant with an Authorization Code grant (authorization_code).https://{tenant_id}.login.quasr.io. You can add parameters to it, e.g. to always open the Login UI in internal mode (see Interfaces — Fixed Parameters).config.redirect_uris: string[]) - These are the allowed redirect URLs of your application where the ID token and/or authorization code will be delivered. Only relevant with an Authorization Code grant (authorization_code).state parameter.config.response_types: string[]) - These are the allowed OAuth 2.0 response types. Valid values are code, code id_token, id_token and/or none. Only relevant with an Authorization Code grant (authorization_code).code) is to be used for most applications where only the authorization code is returned in the redirect. Your application can then exchange the code for the relevant tokens (including an ID token if OpenID Connect is used).code id_token) is a less-secure option where the ID token is immediately returned in the redirect with the authorization code. Your application can then exchange the code for the relevant tokens. Only relevant when OpenID Connect is used (i.e. one of the scopes is openid).id_token) is a less-secure option where the ID token is immediately returned in the redirect but hence avoids a follow-up call. Only relevant when OpenID Connect is used (i.e. one of the scopes is openid).none) is a special but rare option where nothing is returned. This can be interesting to allow users to login from an application that doesn't need any tokens.config.code_challenge_methods: string[]) - These are the allowed OAuth 2.0 code challenge methods. Valid values are plain and/or S256, both by default. Only relevant with an Authorization Code grant (authorization_code).plain) means your application will provide code challenge in clear in the initial request.S256) means your application will provide a hash of the code challenge in the initial request. This is a more secure option.config.signed_request: boolean) - Indicates whether requests should be signed by your application. Only relevant with an Authorization Code grant (authorization_code).config.jwks_uri: string) - The publicly-accessible URL of the JWKS key set of your application. Only relevant if requests are signed.config.authentication.method: string) - This is the authentication method for your application at the token endpoint, e.g. when exchanging an authorization code or requesting a token with the client credentials grant (see Machine (M2M)). Valid values are client_secret_basic, client_secret_post, private_key_jwt, session or none.none. Only if your client is private, for example a backend that can securely keep a secret, choose the authentication method as follows: client_secret_basic) is a simple and standard authentication method where your application must provide the client secret in the Authorization header using the Basic Auth format: base64(client_id:client_secret).client_secret_post) is a simple standard authentication method where your application must provide the client secret in the body (client_secret). Using the body instead of a header is considered more secure.private_key_jwt) is an advanced and standard authentication method where your application must provide a signed JWT in the body (client_assertion).session) is an advanced non-standard method where your application uses the Authentication API to provide a session of sufficient score in the body (client_assertion).config.authentication.factor: string) - The ID of the factor enrollment used for authentication. Only relevant if the authentication method is set to client_secret_basic, client_secret_post or private_key_jwt.secret or secret:password factor.jwt:spki or jwt:jwks factor.config.tokens.access.exp: string) - Expiration of access tokens, i.e. how long the application can retain (user) access. Default is 1 day and maximum is 30 days.s, secs or seconds.m, mins or minutes.h, hrs or hours.d or days.config.tokens.access.aud: string[]) - The audiences the access token can be used for. This will typically be your own API.https://api.quasr.io.config.tokens.access.ext: string) - The ID of the extension which is triggered right before an access token is generated. The extension can inject custom claims and scopes.config.tokens.access.jwk: string) - The publicly-accessible URL of the JWKS key set of your backend to encrypt the access token with.config.tokens.access.ipb: boolean) - Whether the access token is IP bound, i.e. if the token can only be used from the original IP. This aids in protection against token theft but invalidates the token if the account roams and moves across different IPs. Disabled by default.config.tokens.code.enc: boolean) - Whether the authorization code is encrypted. Enabled by default.config.tokens.code.ipb: boolean) - Whether the authorization code is IP bound, i.e. if the token can only be used from the original IP. This aids in protection against token theft but invalidates the token if the account roams and moves across different IPs. Disabled by default.config.tokens.identity.exp: string) - Expiration of identity tokens, i.e. how fast the application must consumer the token. Default is 5 minutes and maximum is 1 day.s, secs or seconds.m, mins or minutes.h, hrs or hours.d or days.w or weeks.y, yrs or years.config.tokens.identity.ext: string) - The ID of the extension which is triggered right before an ID token is generated. The extension can inject custom claims.config.tokens.identity.jwk: string) - The publicly-accessible URL of the JWKS key set of your application to encrypt the ID token with.config.tokens.refresh.exp: string) - Expiration of refresh tokens, i.e. how long the client can use it to obtain new tokens. Default is 1 week and maximum is 1 year.s, secs or seconds.m, mins or minutes.h, hrs or hours.d or days.w or weeks.y, yrs or years.config.tokens.refresh.enc: boolean) - Whether the refresh token is encrypted. Enabled by default.config.tokens.refresh.ipb: boolean) - Whether the refresh token is IP bound, i.e. if the token can only be used from the original IP. This aids in protection against token theft but invalidates the token if the account roams and moves across different IPs. Disabled by default.When a client is compromised or misbehaving, for example because its secret or private key leaked, an admin can lock it (status: LOCKED), either with the Lock button of the client in the Admin UI or by updating its status to LOCKED via the Management API. Locking a client:
config.contacts.security, see Network), if set, like the one shown under UsersDisabling and locking have the same effect on access, but serve a different purpose:
| Disabled | Locked | |
|---|---|---|
| Use when | The client shouldn't be used for now, for example because the application is retired or paused | The client is compromised or misbehaving, for example because its secret or private key leaked |
| How | Status in the Admin UI, or DISABLED via the Management API | Lock button in the Admin UI, or LOCKED via the Management API |
| Access | Tokens revoked; claims, enrollments, rules, permissions and consents locked; the application can't request tokens and users can't sign in to it | Same as disabled |
| Security notification | No | Yes, to the security email |
| Updates | Still possible | Not possible until unlocked |
| Restore | Re-enable it any time | Unlock it (admin only) |
| Switch | Can't be locked, re-enable it first | Can't be disabled, unlock it first |
A locked client stays locked until an admin unlocks it, either with the Unlock button of the client in the Admin UI or by updating its status back to ENABLED via the Management API. Unlocking restores the client and all of its claims, enrollments, rules, permissions and consents to their previous state. The time of the lock or unlock is visible as the client's last update (updated_at).
ENABLED clients can be locked, and a client can't lock itself.Quasr Security can also lock a client it deems suspicious, for example when investigating abuse of the platform. Such a lock has the same effect as one by an admin, including the email, and you unlock the client the same way.