authress 0.1.66

The Authress SDK for RUST - provides authorization as a service with fully compatible REST apis. Authentication / Authorization / User Identity Roles / Permissions / Policies
Documentation



#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct OAuthAuthorizeResponse {
    /// The authorization code to be used with the /tokens endpoint to retrieve an access_token.
    #[serde(rename = "code")]
    pub code: String,
}

impl OAuthAuthorizeResponse {
    pub fn new(code: String) -> OAuthAuthorizeResponse {
        OAuthAuthorizeResponse {
            code,
        }
    }
}