Instance | Branch |
---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Get an access token from an OpenID Connect Provider using the passwort grant type | |
or the client credentials grant type (without user context). | |
First, you need an client id and client secret. | |
The Password Grant Type enables the OpenID Connect client to send a username and password directly | |
to the OpenID Authority to obtain an access token for the user without user interaction. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)] | |
#[serde(rename_all="snake_case")] | |
pub enum State { | |
Pending, | |
Sending, | |
Sent, | |
Failed, | |
} | |
impl fmt::Display for State { |