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 OAuthTokenResponse {
    /// An expiring access token that can be used to access either Authress or any platform service.
    #[serde(rename = "access_token")]
    pub access_token: String,
}

impl OAuthTokenResponse {
    pub fn new(access_token: String) -> OAuthTokenResponse {
        OAuthTokenResponse {
            access_token,
        }
    }
}