Namespace: Consultingwerk.Windows.JwtAuth
Class 
JwtAuthenticationService Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.IAuthenticationService

Purpose: Gets and sets URL of the JWK Keystore
Notes:



Top Method Summary
Options Name Purpose
+ ChangePassword (character, character, character, character, character) Changes the Password of a user
+ CHARACTER GetJwtFromRedirectUrl (character) Extracts the JWT token from the redirect url
+ LOGICAL ValidateUser (IUserCredentials) Validates the user credentials and updates the Session Manager with the user information
# LOGICAL ValidateUserAndLoginCompany (IUserCredentials, character) Validates the user credentials and updates the Session Manager with the user information based on .NET
# LOGICAL ValidateUserDotNet (IUserCredentials, JsonWebToken) Validates the user credentials and updates the Session Manager with the user information based on .NET
# LOGICAL ValidateUserTokenExchangeService (IUserCredentials, JsonWebToken) Validates the user credentials and updates the Session Manager with the user information based on .NET

Top Property Summary
Options Name Purpose
+ CHARACTER JwkUrl
+ CHARACTER OAuth2Url
+ CHARACTER UserNameField
+ Consultingwerk.Windows.JwtAuth.ValidateJwtTokenMethodEnum ValidateJwtTokenMethod


Method Detail
Top

PUBLIC ChangePassword (character, character, character, character, character)

Purpose: Changes the Password of a user
Notes:

Parameters:
pcUserName CHARACTER
The name of the user to change the password for
pcLoginCompanyGuid CHARACTER
The company the user belongs too
pcCurrentPassword CHARACTER
The current password
pcNewPassword CHARACTER
The new password to be set
pcNewPasswordVerified CHARACTER
The repeated new password
Top

PUBLIC CHARACTER GetJwtFromRedirectUrl (character)

Purpose: Extracts the JWT token from the redirect url
Notes:

Parameters:
pcRedirectUrl CHARACTER
The redirect url from successful OAuth2 authentication
Returns CHARACTER
The encoded JWT Token
Top

PUBLIC LOGICAL ValidateUser (IUserCredentials)

Purpose: Validates the user credentials and updates the Session Manager with
the user information
Notes:

Parameters:
poCredentials Consultingwerk.Framework.IUserCredentials
The Credentials to be validated
Returns LOGICAL
Logical value indicating if the user has been authenticated
Top

PROTECTED LOGICAL ValidateUserAndLoginCompany (IUserCredentials, character)

Purpose: Validates the user credentials and updates the Session Manager with
the user information based on .NET
Notes:

Parameters:
poCredentials Consultingwerk.Framework.IUserCredentials
The Credentials to be validated
pcTrustedUserName CHARACTER
The user name from the JWT
Returns LOGICAL
Logical value indicating if the user has been authenticated
Top

PROTECTED LOGICAL ValidateUserDotNet (IUserCredentials, JsonWebToken)

Purpose: Validates the user credentials and updates the Session Manager with
the user information based on .NET
Notes:

Parameters:
poCredentials Consultingwerk.Framework.IUserCredentials
The Credentials to be validated
poJwtToken Consultingwerk.Framework.JsonWebToken
The parsed JWT Token
Returns LOGICAL
Logical value indicating if the user has been authenticated
Top

PROTECTED LOGICAL ValidateUserTokenExchangeService (IUserCredentials, JsonWebToken)

Purpose: Validates the user credentials and updates the Session Manager with
the user information based on .NET
Notes:

Parameters:
poCredentials Consultingwerk.Framework.IUserCredentials
The Credentials to be validated
poJwtToken Consultingwerk.Framework.JsonWebToken
The parsed JWT Token
Returns LOGICAL
Logical value indicating if the user has been authenticated


Property Detail
Top

PUBLIC CHARACTER JwkUrl


Returns CHARACTER
Top

PUBLIC CHARACTER OAuth2Url


Returns CHARACTER
Top

PUBLIC CHARACTER UserNameField


Returns CHARACTER
Top

PUBLIC Consultingwerk.Windows.JwtAuth.ValidateJwtTokenMethodEnum ValidateJwtTokenMethod


Returns Consultingwerk.Windows.JwtAuth.ValidateJwtTokenMethodEnum


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:32:23