Add ability to logout from OIDC (#6539)

* Add OIDC_LOGOUT_URI functionality

* Add logout redirect to work on logout route

* Fix lint

* Fix lint

* Fix lint

* Fix lint

* Return null if logout endpoint used

* Update import
This commit is contained in:
Shuttleu
2024-02-16 16:35:38 +00:00
committed by GitHub
parent 2c9b01391f
commit bc84714670
7 changed files with 29 additions and 1 deletions

View File

@@ -499,6 +499,16 @@ export class Environment {
process.env.OIDC_USERINFO_URI
);
/**
* The OIDC logout endpoint.
*/
@IsOptional()
@IsUrl({
require_tld: false,
allow_underscores: true,
})
public OIDC_LOGOUT_URI = this.toOptionalString(process.env.OIDC_LOGOUT_URI);
/**
* The OIDC profile field to use as the username. The default value is
* "preferred_username".