flwr_oauth2/assertions
This module aims to implement RFC7522 Security Assertion Markup Language (SAML) 2.0 Profile for OAuth 2.0 for OAuth 2.0 Client Authentication and Authorization Grants and RFC7523 JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants. For more infomation on the Authorization Assertion Grant Type see RFC7521.
Types
pub type AssertionAuthorizationGrantRequest {
AssertionAuthorizationGrantRequest(
token_endpoint: uri.Uri,
assertion: String,
grant_type: String,
authentication: option.Option(
authentication.ClientAuthentication,
),
scope: List(String),
)
}
Constructors
-
AssertionAuthorizationGrantRequest( token_endpoint: uri.Uri, assertion: String, grant_type: String, authentication: option.Option( authentication.ClientAuthentication, ), scope: List(String), )
pub type PresetAssertionAuthorizationGrantRequest {
PresetAssertionAuthorizationGrantRequest(
token_endpoint: uri.Uri,
assertion: String,
authentication: option.Option(
authentication.ClientAuthentication,
),
scope: List(String),
)
}
Constructors
-
PresetAssertionAuthorizationGrantRequest( token_endpoint: uri.Uri, assertion: String, authentication: option.Option( authentication.ClientAuthentication, ), scope: List(String), )
Values
pub fn to_authentication(
client_id: common.ClientId,
client_assertion: String,
client_assertion_type: String,
) -> authentication.ClientAuthentication
pub fn to_http_request(
grant: AssertionAuthorizationGrantRequest,
) -> Result(request.Request(String), token_request.RequestError)
pub fn to_jwt_authentication(
client_id: common.ClientId,
client_assertion: String,
) -> authentication.ClientAuthentication
pub fn to_jwt_http_request(
grant: PresetAssertionAuthorizationGrantRequest,
) -> Result(request.Request(String), token_request.RequestError)
pub fn to_saml_authentication(
client_id: common.ClientId,
client_assertion: String,
) -> authentication.ClientAuthentication
pub fn to_saml_http_request(
grant: PresetAssertionAuthorizationGrantRequest,
) -> Result(request.Request(String), token_request.RequestError)