Crate casdoor_rs_sdk

Crate casdoor_rs_sdk 

Source
Expand description

A Casdoor SDK (contain APIs) with more complete interfaces and better usability.

Modules§

utils

Structs§

AccessToken
Access token returned by the token endpoint and used to access protected resources.
AccountItem
ApiError
Struct to represent error information
ApiResponse
Application
ApplicationQueryArgs
AuthSdk
BatchEnforceArgs
BatchEnforceQueryArgs
BatchEnforceResult
CasbinRule
Cert
Claims
Config
Config is the core configuration.
EnforceArgs
EnforceQueryArgs
EnforceResult
Enforcer
ErrPath
ErrPathParent
ErrPathRoot
ErrType
FaceId
Filter
GetUserArgs
ManagedAccount
Method
The Request Method (VERB)
MfaAccount
MfaItem
MfaProps
ModelAddArgs
ModelDeleteArgs
ModelModifyArgs
ModelUpdateArgs
MultiFactorAuth
Organization
OrganizationQueryArgs
Permission
Provider
ProviderItem
QueryArgs
QueryResult
RefreshToken
Refresh token used to obtain a new access token (if supported by the authorization server).
Role
SamlItem
Scope
Access token scope, as defined by the authorization server.
Sdk
SdkError
Session
SetPasswordArgs
SigninItem
SigninMethod
SignupItem
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
ThemeData
Url
A parsed URL record.
User
User info struct, defined in the SDK.
UserGroup
UserGroupQueryArgs
UserQueryArgs
Userinfo
WebauthnCredential

Enums§

BasicTokenType
Basic OAuth2 authorization token types.
Body
ModelAction
ModelActionAffect
QueryUserSet
The filter for query user.
SdkInnerError
Status

Constants§

ERR_SDK_KEY
NO_BODY

Traits§

Model
TokenResponse
Common methods shared by all OAuth2 token implementations.
TokenType
Trait for OAuth2 access tokens.

Functions§

init_error_path
Initialize the suffix of the error code.

Type Aliases§

CasbinRequest
SdkResult