Documentation ¶
Index ¶
- Constants
- func StartLdapServer()
- type ApiController
- func (c *ApiController) AddApplication()
- func (c *ApiController) AddCasbinAdapter()
- func (c *ApiController) AddCert()
- func (c *ApiController) AddLdap()
- func (c *ApiController) AddModel()
- func (c *ApiController) AddOrganization()
- func (c *ApiController) AddPayment()
- func (c *ApiController) AddPermission()
- func (c *ApiController) AddProduct()
- func (c *ApiController) AddProvider()
- func (c *ApiController) AddRecord()
- func (c *ApiController) AddResource()
- func (c *ApiController) AddRole()
- func (c *ApiController) AddSyncer()
- func (c *ApiController) AddToken()
- func (c *ApiController) AddUser()
- func (c *ApiController) AddWebhook()
- func (c *ApiController) BatchEnforce()
- func (c *ApiController) BuyProduct()
- func (c *ApiController) CheckLdapUsersExist()
- func (c *ApiController) CheckUserPassword()
- func (c *ApiController) ClearUserSession()
- func (c *ApiController) DeleteApplication()
- func (c *ApiController) DeleteCasbinAdapter()
- func (c *ApiController) DeleteCert()
- func (c *ApiController) DeleteLdap()
- func (c *ApiController) DeleteModel()
- func (c *ApiController) DeleteOrganization()
- func (c *ApiController) DeletePayment()
- func (c *ApiController) DeletePermission()
- func (c *ApiController) DeleteProduct()
- func (c *ApiController) DeleteProvider()
- func (c *ApiController) DeleteResource()
- func (c *ApiController) DeleteRole()
- func (c *ApiController) DeleteSyncer()
- func (c *ApiController) DeleteToken()
- func (c *ApiController) DeleteUser()
- func (c *ApiController) DeleteWebhook()
- func (c *ApiController) Enforce()
- func (c *ApiController) GetAcceptLanguage() string
- func (c *ApiController) GetAccount()
- func (c *ApiController) GetAllActions()
- func (c *ApiController) GetAllObjects()
- func (c *ApiController) GetAllRoles()
- func (c *ApiController) GetApplication()
- func (c *ApiController) GetApplicationLogin()
- func (c *ApiController) GetApplications()
- func (c *ApiController) GetCaptcha()
- func (c *ApiController) GetCasbinAdapter()
- func (c *ApiController) GetCasbinAdapters()
- func (c *ApiController) GetCert()
- func (c *ApiController) GetCerts()
- func (c *ApiController) GetDefaultApplication()
- func (c *ApiController) GetEmailAndPhone()
- func (c *ApiController) GetGlobalProviders()
- func (c *ApiController) GetGlobalUsers()
- func (c *ApiController) GetLdap()
- func (c *ApiController) GetLdapUser()
- func (c *ApiController) GetLdaps()
- func (c *ApiController) GetModel()
- func (c *ApiController) GetModels()
- func (c *ApiController) GetOAuthCode()
- func (c *ApiController) GetOAuthToken()
- func (c *ApiController) GetOrganization()
- func (c *ApiController) GetOrganizationApplications()
- func (c *ApiController) GetOrganizations()
- func (c *ApiController) GetPayment()
- func (c *ApiController) GetPayments()
- func (c *ApiController) GetPermission()
- func (c *ApiController) GetPermissions()
- func (c *ApiController) GetPermissionsBySubmitter()
- func (c *ApiController) GetProduct()
- func (c *ApiController) GetProducts()
- func (c *ApiController) GetProvider()
- func (c *ApiController) GetProviderFromContext(category string) (*object.Provider, *object.User, bool)
- func (c *ApiController) GetProviders()
- func (c *ApiController) GetRecords()
- func (c *ApiController) GetRecordsByFilter()
- func (c *ApiController) GetResource()
- func (c *ApiController) GetResources()
- func (c *ApiController) GetRole()
- func (c *ApiController) GetRoles()
- func (c *ApiController) GetSamlLogin()
- func (c *ApiController) GetSamlMeta()
- func (c *ApiController) GetSessionApplication() *object.Application
- func (c *ApiController) GetSessionData() *SessionData
- func (c *ApiController) GetSessionOidc() (string, string)
- func (c *ApiController) GetSessionUsername() string
- func (c *ApiController) GetSortedUsers()
- func (c *ApiController) GetSyncer()
- func (c *ApiController) GetSyncers()
- func (c *ApiController) GetSystemInfo()
- func (c *ApiController) GetToken()
- func (c *ApiController) GetTokens()
- func (c *ApiController) GetUser()
- func (c *ApiController) GetUserApplication()
- func (c *ApiController) GetUserCount()
- func (c *ApiController) GetUserPayments()
- func (c *ApiController) GetUserinfo()
- func (c *ApiController) GetUsers()
- func (c *ApiController) GetWebhook()
- func (c *ApiController) GetWebhookEventType()
- func (c *ApiController) GetWebhooks()
- func (c *ApiController) GitRepoVersion()
- func (c *ApiController) HandleLoggedIn(application *object.Application, user *object.User, form *RequestForm) (resp *Response)
- func (c *ApiController) HandleOfficialAccountEvent()
- func (c *ApiController) HandleSamlLogin()
- func (c *ApiController) IntrospectToken()
- func (c *ApiController) InvoicePayment()
- func (c *ApiController) IsGlobalAdmin() bool
- func (c *ApiController) Login()
- func (c *ApiController) Logout()
- func (c *ApiController) NotifyPayment()
- func (c *ApiController) RefreshToken()
- func (c *ApiController) RequireAdmin() (string, bool)
- func (c *ApiController) RequireSignedIn() (string, bool)
- func (c *ApiController) RequireSignedInUser() (*object.User, bool)
- func (c *ApiController) ResetEmailOrPhone()
- func (c *ApiController) ResponseError(error string, data ...interface{})
- func (c *ApiController) ResponseJsonData(resp *Response, data ...interface{})
- func (c *ApiController) ResponseOk(data ...interface{})
- func (c *ApiController) RunSyncer()
- func (c *ApiController) SendEmail()
- func (c *ApiController) SendSms()
- func (c *ApiController) SendVerificationCode()
- func (c *ApiController) SetPassword()
- func (c *ApiController) SetSessionData(s *SessionData)
- func (c *ApiController) SetSessionUsername(user string)
- func (c *ApiController) SetTokenErrorHttpStatus()
- func (c *ApiController) Signup()
- func (c *ApiController) SyncLdapUsers()
- func (c *ApiController) SyncPolicies()
- func (c *ApiController) T(error string) string
- func (c *ApiController) TokenLogout()
- func (c *ApiController) Unlink()
- func (c *ApiController) UpdateApplication()
- func (c *ApiController) UpdateCasbinAdapter()
- func (c *ApiController) UpdateCert()
- func (c *ApiController) UpdateLdap()
- func (c *ApiController) UpdateModel()
- func (c *ApiController) UpdateOrganization()
- func (c *ApiController) UpdatePayment()
- func (c *ApiController) UpdatePermission()
- func (c *ApiController) UpdateProduct()
- func (c *ApiController) UpdateProvider()
- func (c *ApiController) UpdateResource()
- func (c *ApiController) UpdateRole()
- func (c *ApiController) UpdateSyncer()
- func (c *ApiController) UpdateToken()
- func (c *ApiController) UpdateUser()
- func (c *ApiController) UpdateWebhook()
- func (c *ApiController) UploadResource()
- func (c *ApiController) UploadUsers()
- func (c *ApiController) VerifyCaptcha()
- func (c *ApiController) WebAuthnSigninBegin()
- func (c *ApiController) WebAuthnSigninFinish()
- func (c *ApiController) WebAuthnSignupBegin()
- func (c *ApiController) WebAuthnSignupFinish()
- type Captcha
- type EmailForm
- type LdapResp
- type LdapServer
- type LdapSyncResp
- type LinkForm
- type RequestForm
- type Response
- type RootController
- func (c *RootController) CasP3ServiceAndProxyValidate()
- func (c *RootController) CasProxy()
- func (c *RootController) CasProxyValidate()
- func (c *RootController) CasServiceValidate()
- func (c *RootController) CasValidate()
- func (c *RootController) GetJwks()
- func (c *RootController) GetOidcDiscovery()
- func (c *RootController) SamlValidate()
- type SessionData
- type SmsForm
- type SystemInfo
- type TokenRequest
Constants ¶
const ( ResponseTypeLogin = "login" ResponseTypeCode = "code" ResponseTypeToken = "token" ResponseTypeIdToken = "id_token" ResponseTypeSaml = "saml" ResponseTypeCas = "cas" )
Variables ¶
This section is empty.
Functions ¶
func StartLdapServer ¶ added in v1.120.0
func StartLdapServer()
Types ¶
type ApiController ¶
type ApiController struct {
beego.Controller
}
ApiController controller for handlers under /api uri
func (*ApiController) AddApplication ¶
func (c *ApiController) AddApplication()
AddApplication @Title AddApplication @Tag Application API @Description add an application @Param body body object.Application true "The details of the application" @Success 200 {object} controllers.Response The Response object @router /add-application [post]
func (*ApiController) AddCasbinAdapter ¶ added in v1.117.0
func (c *ApiController) AddCasbinAdapter()
func (*ApiController) AddCert ¶
func (c *ApiController) AddCert()
AddCert @Title AddCert @Tag Cert API @Description add cert @Param body body object.Cert true "The details of the cert" @Success 200 {object} controllers.Response The Response object @router /add-cert [post]
func (*ApiController) AddLdap ¶
func (c *ApiController) AddLdap()
AddLdap @Tag Account API @Title AddLdap @router /add-ldap [post]
func (*ApiController) AddModel ¶ added in v1.54.0
func (c *ApiController) AddModel()
AddModel @Title AddModel @Tag Model API @Description add model @Param body body object.Model true "The details of the model" @Success 200 {object} controllers.Response The Response object @router /add-model [post]
func (*ApiController) AddOrganization ¶
func (c *ApiController) AddOrganization()
AddOrganization ... @Title AddOrganization @Tag Organization API @Description add organization @Param body body object.Organization true "The details of the organization" @Success 200 {object} controllers.Response The Response object @router /add-organization [post]
func (*ApiController) AddPayment ¶ added in v1.16.0
func (c *ApiController) AddPayment()
AddPayment @Title AddPayment @Tag Payment API @Description add payment @Param body body object.Payment true "The details of the payment" @Success 200 {object} controllers.Response The Response object @router /add-payment [post]
func (*ApiController) AddPermission ¶
func (c *ApiController) AddPermission()
AddPermission @Title AddPermission @Tag Permission API @Description add permission @Param body body object.Permission true "The details of the permission" @Success 200 {object} controllers.Response The Response object @router /add-permission [post]
func (*ApiController) AddProduct ¶ added in v1.23.0
func (c *ApiController) AddProduct()
AddProduct @Title AddProduct @Tag Product API @Description add product @Param body body object.Product true "The details of the product" @Success 200 {object} controllers.Response The Response object @router /add-product [post]
func (*ApiController) AddProvider ¶
func (c *ApiController) AddProvider()
AddProvider @Title AddProvider @Tag Provider API @Description add provider @Param body body object.Provider true "The details of the provider" @Success 200 {object} controllers.Response The Response object @router /add-provider [post]
func (*ApiController) AddRecord ¶ added in v1.118.1
func (c *ApiController) AddRecord()
AddRecord @Title AddRecord @Tag Record API @Description add a record @Param body body object.Record true "The details of the record" @Success 200 {object} controllers.Response The Response object @router /add-record [post]
func (*ApiController) AddResource ¶
func (c *ApiController) AddResource()
AddResource @Tag Resource API @Title AddResource @router /add-resource [post]
func (*ApiController) AddRole ¶
func (c *ApiController) AddRole()
AddRole @Title AddRole @Tag Role API @Description add role @Param body body object.Role true "The details of the role" @Success 200 {object} controllers.Response The Response object @router /add-role [post]
func (*ApiController) AddSyncer ¶
func (c *ApiController) AddSyncer()
AddSyncer @Title AddSyncer @Tag Syncer API @Description add syncer @Param body body object.Syncer true "The details of the syncer" @Success 200 {object} controllers.Response The Response object @router /add-syncer [post]
func (*ApiController) AddToken ¶
func (c *ApiController) AddToken()
AddToken @Title AddToken @Tag Token API @Description add token @Param body body object.Token true "Details of the token" @Success 200 {object} controllers.Response The Response object @router /add-token [post]
func (*ApiController) AddUser ¶
func (c *ApiController) AddUser()
AddUser @Title AddUser @Tag User API @Description add user @Param body body object.User true "The details of the user" @Success 200 {object} controllers.Response The Response object @router /add-user [post]
func (*ApiController) AddWebhook ¶
func (c *ApiController) AddWebhook()
AddWebhook @Title AddWebhook @Tag Webhook API @Description add webhook @Param body body object.Webhook true "The details of the webhook" @Success 200 {object} controllers.Response The Response object @router /add-webhook [post]
func (*ApiController) BatchEnforce ¶ added in v1.83.0
func (c *ApiController) BatchEnforce()
func (*ApiController) BuyProduct ¶ added in v1.27.6
func (c *ApiController) BuyProduct()
BuyProduct @Title BuyProduct @Tag Product API @Description buy product @Param id query string true "The id of the product" @Param providerName query string true "The name of the provider" @Success 200 {object} controllers.Response The Response object @router /buy-product [post]
func (*ApiController) CheckLdapUsersExist ¶
func (c *ApiController) CheckLdapUsersExist()
CheckLdapUsersExist @Tag Account API @Title CheckLdapUserExist @router /check-ldap-users-exist [post]
func (*ApiController) CheckUserPassword ¶
func (c *ApiController) CheckUserPassword()
CheckUserPassword @Title CheckUserPassword @router /check-user-password [post] @Tag User API
func (*ApiController) ClearUserSession ¶ added in v1.147.0
func (c *ApiController) ClearUserSession()
func (*ApiController) DeleteApplication ¶
func (c *ApiController) DeleteApplication()
DeleteApplication @Title DeleteApplication @Tag Application API @Description delete an application @Param body body object.Application true "The details of the application" @Success 200 {object} controllers.Response The Response object @router /delete-application [post]
func (*ApiController) DeleteCasbinAdapter ¶ added in v1.117.0
func (c *ApiController) DeleteCasbinAdapter()
func (*ApiController) DeleteCert ¶
func (c *ApiController) DeleteCert()
DeleteCert @Title DeleteCert @Tag Cert API @Description delete cert @Param body body object.Cert true "The details of the cert" @Success 200 {object} controllers.Response The Response object @router /delete-cert [post]
func (*ApiController) DeleteLdap ¶
func (c *ApiController) DeleteLdap()
DeleteLdap @Tag Account API @Title DeleteLdap @router /delete-ldap [post]
func (*ApiController) DeleteModel ¶ added in v1.54.0
func (c *ApiController) DeleteModel()
DeleteModel @Title DeleteModel @Tag Model API @Description delete model @Param body body object.Model true "The details of the model" @Success 200 {object} controllers.Response The Response object @router /delete-model [post]
func (*ApiController) DeleteOrganization ¶
func (c *ApiController) DeleteOrganization()
DeleteOrganization ... @Title DeleteOrganization @Tag Organization API @Description delete organization @Param body body object.Organization true "The details of the organization" @Success 200 {object} controllers.Response The Response object @router /delete-organization [post]
func (*ApiController) DeletePayment ¶ added in v1.16.0
func (c *ApiController) DeletePayment()
DeletePayment @Title DeletePayment @Tag Payment API @Description delete payment @Param body body object.Payment true "The details of the payment" @Success 200 {object} controllers.Response The Response object @router /delete-payment [post]
func (*ApiController) DeletePermission ¶
func (c *ApiController) DeletePermission()
DeletePermission @Title DeletePermission @Tag Permission API @Description delete permission @Param body body object.Permission true "The details of the permission" @Success 200 {object} controllers.Response The Response object @router /delete-permission [post]
func (*ApiController) DeleteProduct ¶ added in v1.23.0
func (c *ApiController) DeleteProduct()
DeleteProduct @Title DeleteProduct @Tag Product API @Description delete product @Param body body object.Product true "The details of the product" @Success 200 {object} controllers.Response The Response object @router /delete-product [post]
func (*ApiController) DeleteProvider ¶
func (c *ApiController) DeleteProvider()
DeleteProvider @Title DeleteProvider @Tag Provider API @Description delete provider @Param body body object.Provider true "The details of the provider" @Success 200 {object} controllers.Response The Response object @router /delete-provider [post]
func (*ApiController) DeleteResource ¶
func (c *ApiController) DeleteResource()
DeleteResource @Tag Resource API @Title DeleteResource @router /delete-resource [post]
func (*ApiController) DeleteRole ¶
func (c *ApiController) DeleteRole()
DeleteRole @Title DeleteRole @Tag Role API @Description delete role @Param body body object.Role true "The details of the role" @Success 200 {object} controllers.Response The Response object @router /delete-role [post]
func (*ApiController) DeleteSyncer ¶
func (c *ApiController) DeleteSyncer()
DeleteSyncer @Title DeleteSyncer @Tag Syncer API @Description delete syncer @Param body body object.Syncer true "The details of the syncer" @Success 200 {object} controllers.Response The Response object @router /delete-syncer [post]
func (*ApiController) DeleteToken ¶
func (c *ApiController) DeleteToken()
DeleteToken @Tag Token API @Title DeleteToken @Description delete token @Param body body object.Token true "Details of the token" @Success 200 {object} controllers.Response The Response object @router /delete-token [post]
func (*ApiController) DeleteUser ¶
func (c *ApiController) DeleteUser()
DeleteUser @Title DeleteUser @Tag User API @Description delete user @Param body body object.User true "The details of the user" @Success 200 {object} controllers.Response The Response object @router /delete-user [post]
func (*ApiController) DeleteWebhook ¶
func (c *ApiController) DeleteWebhook()
DeleteWebhook @Title DeleteWebhook @Tag Webhook API @Description delete webhook @Param body body object.Webhook true "The details of the webhook" @Success 200 {object} controllers.Response The Response object @router /delete-webhook [post]
func (*ApiController) Enforce ¶ added in v1.83.0
func (c *ApiController) Enforce()
func (*ApiController) GetAcceptLanguage ¶ added in v1.141.0
func (c *ApiController) GetAcceptLanguage() string
GetAcceptLanguage ...
func (*ApiController) GetAccount ¶
func (c *ApiController) GetAccount()
GetAccount @Title GetAccount @Tag Account API @Description get the details of the current account @Success 200 {object} controllers.Response The Response object @router /get-account [get]
func (*ApiController) GetAllActions ¶ added in v1.83.0
func (c *ApiController) GetAllActions()
func (*ApiController) GetAllObjects ¶ added in v1.83.0
func (c *ApiController) GetAllObjects()
func (*ApiController) GetAllRoles ¶ added in v1.83.0
func (c *ApiController) GetAllRoles()
func (*ApiController) GetApplication ¶
func (c *ApiController) GetApplication()
GetApplication @Title GetApplication @Tag Application API @Description get the detail of an application @Param id query string true "The id of the application." @Success 200 {object} object.Application The Response object @router /get-application [get]
func (*ApiController) GetApplicationLogin ¶
func (c *ApiController) GetApplicationLogin()
GetApplicationLogin ... @Title GetApplicationLogin @Tag Login API @Description get application login @Param clientId query string true "client id" @Param responseType query string true "response type" @Param redirectUri query string true "redirect uri" @Param scope query string true "scope" @Param state query string true "state" @Success 200 {object} Response The Response object @router /get-app-login [get]
func (*ApiController) GetApplications ¶
func (c *ApiController) GetApplications()
GetApplications @Title GetApplications @Tag Application API @Description get all applications @Param owner query string true "The owner of applications." @Success 200 {array} object.Application The Response object @router /get-applications [get]
func (*ApiController) GetCaptcha ¶ added in v1.57.0
func (c *ApiController) GetCaptcha()
GetCaptcha ... @Tag Login API @Title GetCaptcha @router /api/get-captcha [get]
func (*ApiController) GetCasbinAdapter ¶ added in v1.117.0
func (c *ApiController) GetCasbinAdapter()
func (*ApiController) GetCasbinAdapters ¶ added in v1.117.0
func (c *ApiController) GetCasbinAdapters()
func (*ApiController) GetCert ¶
func (c *ApiController) GetCert()
GetCert @Title GetCert @Tag Cert API @Description get cert @Param id query string true "The id of the cert" @Success 200 {object} object.Cert The Response object @router /get-cert [get]
func (*ApiController) GetCerts ¶
func (c *ApiController) GetCerts()
GetCerts @Title GetCerts @Tag Cert API @Description get certs @Param owner query string true "The owner of certs" @Success 200 {array} object.Cert The Response object @router /get-certs [get]
func (*ApiController) GetDefaultApplication ¶ added in v1.114.0
func (c *ApiController) GetDefaultApplication()
GetDefaultApplication ... @Title GetDefaultApplication @Tag Organization API @Description get default application @Param id query string true "organization id" @Success 200 {object} Response The Response object @router /get-default-application [get]
func (*ApiController) GetEmailAndPhone ¶
func (c *ApiController) GetEmailAndPhone()
GetEmailAndPhone @Title GetEmailAndPhone @Tag User API @Description get email and phone by username @Param username formData string true "The username of the user" @Param organization formData string true "The organization of the user" @Success 200 {object} controllers.Response The Response object @router /get-email-and-phone [post]
func (*ApiController) GetGlobalProviders ¶ added in v1.151.0
func (c *ApiController) GetGlobalProviders()
GetGlobalProviders @Title GetGlobalProviders @Tag Provider API @Description get Global providers @Success 200 {array} object.Provider The Response object @router /get-global-providers [get]
func (*ApiController) GetGlobalUsers ¶
func (c *ApiController) GetGlobalUsers()
GetGlobalUsers @Title GetGlobalUsers @Tag User API @Description get global users @Success 200 {array} object.User The Response object @router /get-global-users [get]
func (*ApiController) GetLdap ¶
func (c *ApiController) GetLdap()
GetLdap @Tag Account API @Title GetLdap @router /get-ldap [post]
func (*ApiController) GetLdapUser ¶
func (c *ApiController) GetLdapUser()
GetLdapUser @Tag Account API @Title GetLdapser @router /get-ldap-user [post]
func (*ApiController) GetLdaps ¶
func (c *ApiController) GetLdaps()
GetLdaps @Tag Account API @Title GetLdaps @router /get-ldaps [post]
func (*ApiController) GetModel ¶ added in v1.54.0
func (c *ApiController) GetModel()
GetModel @Title GetModel @Tag Model API @Description get model @Param id query string true "The id of the model" @Success 200 {object} object.Model The Response object @router /get-model [get]
func (*ApiController) GetModels ¶ added in v1.54.0
func (c *ApiController) GetModels()
GetModels @Title GetModels @Tag Model API @Description get models @Param owner query string true "The owner of models" @Success 200 {array} object.Model The Response object @router /get-models [get]
func (*ApiController) GetOAuthCode ¶
func (c *ApiController) GetOAuthCode()
GetOAuthCode @Title GetOAuthCode @Tag Token API @Description get OAuth code @Param user_id query string true "The id of user" @Param client_id query string true "OAuth client id" @Param response_type query string true "OAuth response type" @Param redirect_uri query string true "OAuth redirect URI" @Param scope query string true "OAuth scope" @Param state query string true "OAuth state" @Success 200 {object} object.TokenWrapper The Response object @router /login/oauth/code [post]
func (*ApiController) GetOAuthToken ¶
func (c *ApiController) GetOAuthToken()
GetOAuthToken @Title GetOAuthToken @Tag Token API @Description get OAuth access token @Param grant_type query string true "OAuth grant type" @Param client_id query string true "OAuth client id" @Param client_secret query string true "OAuth client secret" @Param code query string true "OAuth code" @Success 200 {object} object.TokenWrapper The Response object @Success 400 {object} object.TokenError The Response object @Success 401 {object} object.TokenError The Response object @router /login/oauth/access_token [post]
func (*ApiController) GetOrganization ¶
func (c *ApiController) GetOrganization()
GetOrganization ... @Title GetOrganization @Tag Organization API @Description get organization @Param id query string true "organization id" @Success 200 {object} object.Organization The Response object @router /get-organization [get]
func (*ApiController) GetOrganizationApplications ¶ added in v1.82.1
func (c *ApiController) GetOrganizationApplications()
GetOrganizationApplications @Title GetOrganizationApplications @Tag Application API @Description get the detail of the organization's application @Param organization query string true "The organization name" @Success 200 {array} object.Application The Response object @router /get-organization-applications [get]
func (*ApiController) GetOrganizations ¶
func (c *ApiController) GetOrganizations()
GetOrganizations ... @Title GetOrganizations @Tag Organization API @Description get organizations @Param owner query string true "owner" @Success 200 {array} object.Organization The Response object @router /get-organizations [get]
func (*ApiController) GetPayment ¶ added in v1.16.0
func (c *ApiController) GetPayment()
GetPayment @Title GetPayment @Tag Payment API @Description get payment @Param id query string true "The id of the payment" @Success 200 {object} object.Payment The Response object @router /get-payment [get]
func (*ApiController) GetPayments ¶ added in v1.16.0
func (c *ApiController) GetPayments()
GetPayments @Title GetPayments @Tag Payment API @Description get payments @Param owner query string true "The owner of payments" @Success 200 {array} object.Payment The Response object @router /get-payments [get]
func (*ApiController) GetPermission ¶
func (c *ApiController) GetPermission()
GetPermission @Title GetPermission @Tag Permission API @Description get permission @Param id query string true "The id of the permission" @Success 200 {object} object.Permission The Response object @router /get-permission [get]
func (*ApiController) GetPermissions ¶
func (c *ApiController) GetPermissions()
GetPermissions @Title GetPermissions @Tag Permission API @Description get permissions @Param owner query string true "The owner of permissions" @Success 200 {array} object.Permission The Response object @router /get-permissions [get]
func (*ApiController) GetPermissionsBySubmitter ¶ added in v1.88.1
func (c *ApiController) GetPermissionsBySubmitter()
GetPermissionsBySubmitter @Title GetPermissionsBySubmitter @Tag Permission API @Description get permissions by submitter @Success 200 {array} object.Permission The Response object @router /get-permissions-by-submitter [get]
func (*ApiController) GetProduct ¶ added in v1.23.0
func (c *ApiController) GetProduct()
GetProduct @Title GetProduct @Tag Product API @Description get product @Param id query string true "The id of the product" @Success 200 {object} object.Product The Response object @router /get-product [get]
func (*ApiController) GetProducts ¶ added in v1.23.0
func (c *ApiController) GetProducts()
GetProducts @Title GetProducts @Tag Product API @Description get products @Param owner query string true "The owner of products" @Success 200 {array} object.Product The Response object @router /get-products [get]
func (*ApiController) GetProvider ¶
func (c *ApiController) GetProvider()
GetProvider @Title GetProvider @Tag Provider API @Description get provider @Param id query string true "The id of the provider" @Success 200 {object} object.Provider The Response object @router /get-provider [get]
func (*ApiController) GetProviderFromContext ¶
func (*ApiController) GetProviders ¶
func (c *ApiController) GetProviders()
GetProviders @Title GetProviders @Tag Provider API @Description get providers @Param owner query string true "The owner of providers" @Success 200 {array} object.Provider The Response object @router /get-providers [get]
func (*ApiController) GetRecords ¶
func (c *ApiController) GetRecords()
GetRecords @Title GetRecords @Tag Record API @Description get all records @Param pageSize query string true "The size of each page" @Param p query string true "The number of the page" @Success 200 {object} object.Record The Response object @router /get-records [get]
func (*ApiController) GetRecordsByFilter ¶
func (c *ApiController) GetRecordsByFilter()
GetRecordsByFilter @Tag Record API @Title GetRecordsByFilter @Description get records by filter @Param filter body string true "filter Record message" @Success 200 {object} object.Record The Response object @router /get-records-filter [post]
func (*ApiController) GetResource ¶
func (c *ApiController) GetResource()
GetResource @Tag Resource API @Title GetResource @router /get-resource [get]
func (*ApiController) GetResources ¶
func (c *ApiController) GetResources()
GetResources @router /get-resources [get] @Tag Resource API @Title GetResources
func (*ApiController) GetRole ¶
func (c *ApiController) GetRole()
GetRole @Title GetRole @Tag Role API @Description get role @Param id query string true "The id of the role" @Success 200 {object} object.Role The Response object @router /get-role [get]
func (*ApiController) GetRoles ¶
func (c *ApiController) GetRoles()
GetRoles @Title GetRoles @Tag Role API @Description get roles @Param owner query string true "The owner of roles" @Success 200 {array} object.Role The Response object @router /get-roles [get]
func (*ApiController) GetSamlLogin ¶
func (c *ApiController) GetSamlLogin()
func (*ApiController) GetSamlMeta ¶ added in v1.38.0
func (c *ApiController) GetSamlMeta()
func (*ApiController) GetSessionApplication ¶ added in v1.30.2
func (c *ApiController) GetSessionApplication() *object.Application
func (*ApiController) GetSessionData ¶
func (c *ApiController) GetSessionData() *SessionData
GetSessionData ...
func (*ApiController) GetSessionOidc ¶ added in v1.13.0
func (c *ApiController) GetSessionOidc() (string, string)
func (*ApiController) GetSessionUsername ¶
func (c *ApiController) GetSessionUsername() string
GetSessionUsername ...
func (*ApiController) GetSortedUsers ¶
func (c *ApiController) GetSortedUsers()
GetSortedUsers @Title GetSortedUsers @Tag User API @Description @Param owner query string true "The owner of users" @Param sorter query string true "The DB column name to sort by, e.g., created_time" @Param limit query string true "The count of users to return, e.g., 25" @Success 200 {array} object.User The Response object @router /get-sorted-users [get]
func (*ApiController) GetSyncer ¶
func (c *ApiController) GetSyncer()
GetSyncer @Title GetSyncer @Tag Syncer API @Description get syncer @Param id query string true "The id of the syncer" @Success 200 {object} object.Syncer The Response object @router /get-syncer [get]
func (*ApiController) GetSyncers ¶
func (c *ApiController) GetSyncers()
GetSyncers @Title GetSyncers @Tag Syncer API @Description get syncers @Param owner query string true "The owner of syncers" @Success 200 {array} object.Syncer The Response object @router /get-syncers [get]
func (*ApiController) GetSystemInfo ¶ added in v1.96.0
func (c *ApiController) GetSystemInfo()
GetSystemInfo @Title GetSystemInfo @Tag System API @Description get user's system info @Param id query string true "The id of the user" @Success 200 {object} object.SystemInfo The Response object @router /get-system-info [get]
func (*ApiController) GetToken ¶
func (c *ApiController) GetToken()
GetToken @Title GetToken @Tag Token API @Description get token @Param id query string true "The id of token" @Success 200 {object} object.Token The Response object @router /get-token [get]
func (*ApiController) GetTokens ¶
func (c *ApiController) GetTokens()
GetTokens @Title GetTokens @Tag Token API @Description get tokens @Param owner query string true "The owner of tokens" @Param pageSize query string true "The size of each page" @Param p query string true "The number of the page" @Success 200 {array} object.Token The Response object @router /get-tokens [get]
func (*ApiController) GetUser ¶
func (c *ApiController) GetUser()
GetUser @Title GetUser @Tag User API @Description get user @Param id query string true "The id of the user" @Param owner query string false "The owner of the user" @Param email query string false "The email of the user" @Param phone query string false "The phone of the user" @Success 200 {object} object.User The Response object @router /get-user [get]
func (*ApiController) GetUserApplication ¶
func (c *ApiController) GetUserApplication()
GetUserApplication @Title GetUserApplication @Tag Application API @Description get the detail of the user's application @Param id query string true "The id of the user" @Success 200 {object} object.Application The Response object @router /get-user-application [get]
func (*ApiController) GetUserCount ¶
func (c *ApiController) GetUserCount()
GetUserCount @Title GetUserCount @Tag User API @Description @Param owner query string true "The owner of users" @Param isOnline query string true "The filter for query, 1 for online, 0 for offline, empty string for all users" @Success 200 {int} int The count of filtered users for an organization @router /get-user-count [get]
func (*ApiController) GetUserPayments ¶ added in v1.29.0
func (c *ApiController) GetUserPayments()
GetUserPayments @Title GetUserPayments @Tag Payment API @Description get payments for a user @Param owner query string true "The owner of payments" @Param organization query string true "The organization of the user" @Param user query string true "The username of the user" @Success 200 {array} object.Payment The Response object @router /get-user-payments [get]
func (*ApiController) GetUserinfo ¶ added in v1.13.0
func (c *ApiController) GetUserinfo()
GetUserinfo UserInfo @Title UserInfo @Tag Account API @Description return user information according to OIDC standards @Success 200 {object} object.Userinfo The Response object @router /userinfo [get]
func (*ApiController) GetUsers ¶
func (c *ApiController) GetUsers()
GetUsers @Title GetUsers @Tag User API @Description @Param owner query string true "The owner of users" @Success 200 {array} object.User The Response object @router /get-users [get]
func (*ApiController) GetWebhook ¶
func (c *ApiController) GetWebhook()
GetWebhook @Title GetWebhook @Tag Webhook API @Description get webhook @Param id query string true "The id of the webhook" @Success 200 {object} object.Webhook The Response object @router /get-webhook [get]
func (*ApiController) GetWebhookEventType ¶ added in v1.156.0
func (c *ApiController) GetWebhookEventType()
GetWebhookEventType ... @Tag GetWebhookEventType API @Title GetWebhookEventType @router /api/get-webhook-event [GET]
func (*ApiController) GetWebhooks ¶
func (c *ApiController) GetWebhooks()
GetWebhooks @Title GetWebhooks @Tag Webhook API @Description get webhooks @Param owner query string true "The owner of webhooks" @Success 200 {array} object.Webhook The Response object @router /get-webhooks [get]
func (*ApiController) GitRepoVersion ¶ added in v1.96.0
func (c *ApiController) GitRepoVersion()
GitRepoVersion @Title GitRepoVersion @Tag System API @Description get local github repo's latest release version info @Success 200 {string} local latest version hash of casdoor @router /get-release [get]
func (*ApiController) HandleLoggedIn ¶
func (c *ApiController) HandleLoggedIn(application *object.Application, user *object.User, form *RequestForm) (resp *Response)
HandleLoggedIn ...
func (*ApiController) HandleOfficialAccountEvent ¶ added in v1.156.0
func (c *ApiController) HandleOfficialAccountEvent()
HandleOfficialAccountEvent ... @Tag HandleOfficialAccountEvent API @Title HandleOfficialAccountEvent @router /api/webhook [POST]
func (*ApiController) HandleSamlLogin ¶
func (c *ApiController) HandleSamlLogin()
func (*ApiController) IntrospectToken ¶ added in v1.26.0
func (c *ApiController) IntrospectToken()
IntrospectToken @Title IntrospectToken @Description The introspection endpoint is an OAuth 2.0 endpoint that takes a parameter representing an OAuth 2.0 token and returns a JSON document representing the meta information surrounding the token, including whether this token is currently active. This endpoint only support Basic Authorization.
@Param token formData string true "access_token's value or refresh_token's value" @Param token_type_hint formData string true "the token type access_token or refresh_token" @Success 200 {object} object.IntrospectionResponse The Response object @Success 400 {object} object.TokenError The Response object @Success 401 {object} object.TokenError The Response object @router /login/oauth/introspect [post]
func (*ApiController) InvoicePayment ¶ added in v1.44.9
func (c *ApiController) InvoicePayment()
InvoicePayment @Title InvoicePayment @Tag Payment API @Description invoice payment @Param id query string true "The id of the payment" @Success 200 {object} controllers.Response The Response object @router /invoice-payment [post]
func (*ApiController) IsGlobalAdmin ¶
func (c *ApiController) IsGlobalAdmin() bool
func (*ApiController) Login ¶
func (c *ApiController) Login()
Login ... @Title Login @Tag Login API @Description login @Param clientId query string true clientId @Param responseType query string true responseType @Param redirectUri query string true redirectUri @Param scope query string false scope @Param state query string false state @Param nonce query string false nonce @Param code_challenge_method query string false code_challenge_method @Param code_challenge query string false code_challenge @Param form body controllers.RequestForm true "Login information" @Success 200 {object} Response The Response object @router /login [post]
func (*ApiController) Logout ¶
func (c *ApiController) Logout()
Logout @Title Logout @Tag Login API @Description logout the current user @Success 200 {object} controllers.Response The Response object @router /logout [get,post]
func (*ApiController) NotifyPayment ¶ added in v1.27.6
func (c *ApiController) NotifyPayment()
NotifyPayment @Title NotifyPayment @Tag Payment API @Description notify payment @Param body body object.Payment true "The details of the payment" @Success 200 {object} controllers.Response The Response object @router /notify-payment [post]
func (*ApiController) RefreshToken ¶
func (c *ApiController) RefreshToken()
RefreshToken @Title RefreshToken @Tag Token API @Description refresh OAuth access token @Param grant_type query string true "OAuth grant type" @Param refresh_token query string true "OAuth refresh token" @Param scope query string true "OAuth scope" @Param client_id query string true "OAuth client id" @Param client_secret query string false "OAuth client secret" @Success 200 {object} object.TokenWrapper The Response object @Success 400 {object} object.TokenError The Response object @Success 401 {object} object.TokenError The Response object @router /login/oauth/refresh_token [post]
func (*ApiController) RequireAdmin ¶ added in v1.118.1
func (c *ApiController) RequireAdmin() (string, bool)
RequireAdmin ...
func (*ApiController) RequireSignedIn ¶
func (c *ApiController) RequireSignedIn() (string, bool)
RequireSignedIn ...
func (*ApiController) RequireSignedInUser ¶ added in v1.118.1
func (c *ApiController) RequireSignedInUser() (*object.User, bool)
RequireSignedInUser ...
func (*ApiController) ResetEmailOrPhone ¶
func (c *ApiController) ResetEmailOrPhone()
ResetEmailOrPhone ... @Tag Account API @Title ResetEmailOrPhone @router /api/reset-email-or-phone [post]
func (*ApiController) ResponseError ¶
func (c *ApiController) ResponseError(error string, data ...interface{})
ResponseError ...
func (*ApiController) ResponseJsonData ¶ added in v1.95.0
func (c *ApiController) ResponseJsonData(resp *Response, data ...interface{})
ResponseJsonData ...
func (*ApiController) ResponseOk ¶
func (c *ApiController) ResponseOk(data ...interface{})
ResponseOk ...
func (*ApiController) RunSyncer ¶ added in v1.44.0
func (c *ApiController) RunSyncer()
RunSyncer @Title RunSyncer @Tag Syncer API @Description run syncer @Param body body object.Syncer true "The details of the syncer" @Success 200 {object} controllers.Response The Response object @router /run-syncer [get]
func (*ApiController) SendEmail ¶
func (c *ApiController) SendEmail()
SendEmail @Title SendEmail @Tag Service API @Description This API is not for Casdoor frontend to call, it is for Casdoor SDKs. @Param clientId query string true "The clientId of the application" @Param clientSecret query string true "The clientSecret of the application" @Param from body controllers.EmailForm true "Details of the email request" @Success 200 {object} Response object @router /api/send-email [post]
func (*ApiController) SendSms ¶
func (c *ApiController) SendSms()
SendSms @Title SendSms @Tag Service API @Description This API is not for Casdoor frontend to call, it is for Casdoor SDKs. @Param clientId query string true "The clientId of the application" @Param clientSecret query string true "The clientSecret of the application" @Param from body controllers.SmsForm true "Details of the sms request" @Success 200 {object} Response object @router /api/send-sms [post]
func (*ApiController) SendVerificationCode ¶
func (c *ApiController) SendVerificationCode()
SendVerificationCode ... @Title SendVerificationCode @Tag Verification API @router /send-verification-code [post]
func (*ApiController) SetPassword ¶
func (c *ApiController) SetPassword()
SetPassword @Title SetPassword @Tag Account API @Description set password @Param userOwner formData string true "The owner of the user" @Param userName formData string true "The name of the user" @Param oldPassword formData string true "The old password of the user" @Param newPassword formData string true "The new password of the user" @Success 200 {object} controllers.Response The Response object @router /set-password [post]
func (*ApiController) SetSessionData ¶
func (c *ApiController) SetSessionData(s *SessionData)
SetSessionData ...
func (*ApiController) SetSessionUsername ¶
func (c *ApiController) SetSessionUsername(user string)
SetSessionUsername ...
func (*ApiController) SetTokenErrorHttpStatus ¶ added in v1.62.5
func (c *ApiController) SetTokenErrorHttpStatus()
SetTokenErrorHttpStatus ...
func (*ApiController) Signup ¶
func (c *ApiController) Signup()
Signup @Tag Login API @Title Signup @Description sign up a new user @Param username formData string true "The username to sign up" @Param password formData string true "The password" @Success 200 {object} controllers.Response The Response object @router /signup [post]
func (*ApiController) SyncLdapUsers ¶
func (c *ApiController) SyncLdapUsers()
SyncLdapUsers @Tag Account API @Title SyncLdapUsers @router /sync-ldap-users [post]
func (*ApiController) SyncPolicies ¶ added in v1.117.0
func (c *ApiController) SyncPolicies()
func (*ApiController) T ¶ added in v1.141.0
func (c *ApiController) T(error string) string
func (*ApiController) TokenLogout ¶ added in v1.25.0
func (c *ApiController) TokenLogout()
TokenLogout @Title TokenLogout @Tag Token API @Description delete token by AccessToken @Param id_token_hint query string true "id_token_hint" @Param post_logout_redirect_uri query string false "post_logout_redirect_uri" @Param state query string true "state" @Success 200 {object} controllers.Response The Response object @router /login/oauth/logout [get]
func (*ApiController) Unlink ¶
func (c *ApiController) Unlink()
Unlink ... @router /unlink [post] @Tag Login API
func (*ApiController) UpdateApplication ¶
func (c *ApiController) UpdateApplication()
UpdateApplication @Title UpdateApplication @Tag Application API @Description update an application @Param id query string true "The id of the application" @Param body body object.Application true "The details of the application" @Success 200 {object} controllers.Response The Response object @router /update-application [post]
func (*ApiController) UpdateCasbinAdapter ¶ added in v1.117.0
func (c *ApiController) UpdateCasbinAdapter()
func (*ApiController) UpdateCert ¶
func (c *ApiController) UpdateCert()
UpdateCert @Title UpdateCert @Tag Cert API @Description update cert @Param id query string true "The id of the cert" @Param body body object.Cert true "The details of the cert" @Success 200 {object} controllers.Response The Response object @router /update-cert [post]
func (*ApiController) UpdateLdap ¶
func (c *ApiController) UpdateLdap()
UpdateLdap @Tag Account API @Title UpdateLdap @router /update-ldap [post]
func (*ApiController) UpdateModel ¶ added in v1.54.0
func (c *ApiController) UpdateModel()
UpdateModel @Title UpdateModel @Tag Model API @Description update model @Param id query string true "The id of the model" @Param body body object.Model true "The details of the model" @Success 200 {object} controllers.Response The Response object @router /update-model [post]
func (*ApiController) UpdateOrganization ¶
func (c *ApiController) UpdateOrganization()
UpdateOrganization ... @Title UpdateOrganization @Tag Organization API @Description update organization @Param id query string true "The id of the organization" @Param body body object.Organization true "The details of the organization" @Success 200 {object} controllers.Response The Response object @router /update-organization [post]
func (*ApiController) UpdatePayment ¶ added in v1.16.0
func (c *ApiController) UpdatePayment()
UpdatePayment @Title UpdatePayment @Tag Payment API @Description update payment @Param id query string true "The id of the payment" @Param body body object.Payment true "The details of the payment" @Success 200 {object} controllers.Response The Response object @router /update-payment [post]
func (*ApiController) UpdatePermission ¶
func (c *ApiController) UpdatePermission()
UpdatePermission @Title UpdatePermission @Tag Permission API @Description update permission @Param id query string true "The id of the permission" @Param body body object.Permission true "The details of the permission" @Success 200 {object} controllers.Response The Response object @router /update-permission [post]
func (*ApiController) UpdateProduct ¶ added in v1.23.0
func (c *ApiController) UpdateProduct()
UpdateProduct @Title UpdateProduct @Tag Product API @Description update product @Param id query string true "The id of the product" @Param body body object.Product true "The details of the product" @Success 200 {object} controllers.Response The Response object @router /update-product [post]
func (*ApiController) UpdateProvider ¶
func (c *ApiController) UpdateProvider()
UpdateProvider @Title UpdateProvider @Tag Provider API @Description update provider @Param id query string true "The id of the provider" @Param body body object.Provider true "The details of the provider" @Success 200 {object} controllers.Response The Response object @router /update-provider [post]
func (*ApiController) UpdateResource ¶
func (c *ApiController) UpdateResource()
UpdateResource @Tag Resource API @Title UpdateResource @router /update-resource [post]
func (*ApiController) UpdateRole ¶
func (c *ApiController) UpdateRole()
UpdateRole @Title UpdateRole @Tag Role API @Description update role @Param id query string true "The id of the role" @Param body body object.Role true "The details of the role" @Success 200 {object} controllers.Response The Response object @router /update-role [post]
func (*ApiController) UpdateSyncer ¶
func (c *ApiController) UpdateSyncer()
UpdateSyncer @Title UpdateSyncer @Tag Syncer API @Description update syncer @Param id query string true "The id of the syncer" @Param body body object.Syncer true "The details of the syncer" @Success 200 {object} controllers.Response The Response object @router /update-syncer [post]
func (*ApiController) UpdateToken ¶
func (c *ApiController) UpdateToken()
UpdateToken @Title UpdateToken @Tag Token API @Description update token @Param id query string true "The id of token" @Param body body object.Token true "Details of the token" @Success 200 {object} controllers.Response The Response object @router /update-token [post]
func (*ApiController) UpdateUser ¶
func (c *ApiController) UpdateUser()
UpdateUser @Title UpdateUser @Tag User API @Description update user @Param id query string true "The id of the user" @Param body body object.User true "The details of the user" @Success 200 {object} controllers.Response The Response object @router /update-user [post]
func (*ApiController) UpdateWebhook ¶
func (c *ApiController) UpdateWebhook()
UpdateWebhook @Title UpdateWebhook @Tag Webhook API @Description update webhook @Param id query string true "The id of the webhook" @Param body body object.Webhook true "The details of the webhook" @Success 200 {object} controllers.Response The Response object @router /update-webhook [post]
func (*ApiController) UploadResource ¶
func (c *ApiController) UploadResource()
UploadResource @Tag Resource API @Title UploadResource @router /upload-resource [post]
func (*ApiController) UploadUsers ¶
func (c *ApiController) UploadUsers()
func (*ApiController) VerifyCaptcha ¶ added in v1.57.0
func (c *ApiController) VerifyCaptcha()
VerifyCaptcha ... @Title VerifyCaptcha @Tag Verification API @router /verify-captcha [post]
func (*ApiController) WebAuthnSigninBegin ¶ added in v1.68.0
func (c *ApiController) WebAuthnSigninBegin()
WebAuthnSigninBegin @Title WebAuthnSigninBegin @Tag Login API @Description WebAuthn Login Flow 1st stage @Param owner query string true "owner" @Param name query string true "name" @Success 200 {object} protocol.CredentialAssertion The CredentialAssertion object @router /webauthn/signin/begin [get]
func (*ApiController) WebAuthnSigninFinish ¶ added in v1.68.0
func (c *ApiController) WebAuthnSigninFinish()
WebAuthnSigninFinish @Title WebAuthnSigninBegin @Tag Login API @Description WebAuthn Login Flow 2nd stage @Param body body protocol.CredentialAssertionResponse true "authenticator assertion Response" @Success 200 {object} Response "The Response object" @router /webauthn/signin/finish [post]
func (*ApiController) WebAuthnSignupBegin ¶ added in v1.68.0
func (c *ApiController) WebAuthnSignupBegin()
WebAuthnSignupBegin @Title WebAuthnSignupBegin @Tag User API @Description WebAuthn Registration Flow 1st stage @Success 200 {object} protocol.CredentialCreation The CredentialCreationOptions object @router /webauthn/signup/begin [get]
func (*ApiController) WebAuthnSignupFinish ¶ added in v1.68.0
func (c *ApiController) WebAuthnSignupFinish()
WebAuthnSignupFinish @Title WebAuthnSignupFinish @Tag User API @Description WebAuthn Registration Flow 2nd stage @Param body body protocol.CredentialCreationResponse true "authenticator attestation Response" @Success 200 {object} Response "The Response object" @router /webauthn/signup/finish [post]
type Captcha ¶ added in v1.57.0
type Captcha struct { Type string `json:"type"` AppKey string `json:"appKey"` Scene string `json:"scene"` CaptchaId string `json:"captchaId"` CaptchaImage []byte `json:"captchaImage"` ClientId string `json:"clientId"` ClientSecret string `json:"clientSecret"` ClientId2 string `json:"clientId2"` ClientSecret2 string `json:"clientSecret2"` SubType string `json:"subType"` }
type LdapResp ¶
type LdapResp struct { // Groups []LdapRespGroup `json:"groups"` Users []object.LdapRespUser `json:"users"` }
type LdapServer ¶
type LdapSyncResp ¶
type LdapSyncResp struct { Exist []object.LdapRespUser `json:"exist"` Failed []object.LdapRespUser `json:"failed"` }
type RequestForm ¶
type RequestForm struct { Type string `json:"type"` Organization string `json:"organization"` Username string `json:"username"` Password string `json:"password"` Name string `json:"name"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Phone string `json:"phone"` Affiliation string `json:"affiliation"` IdCard string `json:"idCard"` Region string `json:"region"` Application string `json:"application"` Provider string `json:"provider"` Code string `json:"code"` State string `json:"state"` RedirectUri string `json:"redirectUri"` Method string `json:"method"` EmailCode string `json:"emailCode"` PhoneCode string `json:"phoneCode"` PhonePrefix string `json:"phonePrefix"` AutoSignin bool `json:"autoSignin"` RelayState string `json:"relayState"` SamlRequest string `json:"samlRequest"` SamlResponse string `json:"samlResponse"` CaptchaType string `json:"captchaType"` CaptchaToken string `json:"captchaToken"` ClientSecret string `json:"clientSecret"` }
type RootController ¶
type RootController struct {
ApiController
}
RootController controller for handlers directly under / (root)
func (*RootController) CasP3ServiceAndProxyValidate ¶ added in v1.39.0
func (c *RootController) CasP3ServiceAndProxyValidate()
func (*RootController) CasProxy ¶ added in v1.36.0
func (c *RootController) CasProxy()
func (*RootController) CasProxyValidate ¶ added in v1.39.0
func (c *RootController) CasProxyValidate()
func (*RootController) CasServiceValidate ¶ added in v1.39.0
func (c *RootController) CasServiceValidate()
func (*RootController) CasValidate ¶ added in v1.36.0
func (c *RootController) CasValidate()
func (*RootController) GetJwks ¶ added in v1.20.1
func (c *RootController) GetJwks()
GetJwks @Title GetJwks @Tag OIDC API @Success 200 {object} jose.JSONWebKey @router /.well-known/jwks [get]
func (*RootController) GetOidcDiscovery ¶
func (c *RootController) GetOidcDiscovery()
GetOidcDiscovery @Title GetOidcDiscovery @Tag OIDC API @Description Get Oidc Discovery @Success 200 {object} object.OidcDiscovery @router /.well-known/openid-configuration [get]
func (*RootController) SamlValidate ¶ added in v1.39.0
func (c *RootController) SamlValidate()
type SessionData ¶
type SessionData struct {
ExpireTime int64
}
type SystemInfo ¶ added in v1.96.0
type TokenRequest ¶ added in v1.35.1
type TokenRequest struct { GrantType string `json:"grant_type"` Code string `json:"code"` ClientId string `json:"client_id"` ClientSecret string `json:"client_secret"` Verifier string `json:"code_verifier"` Scope string `json:"scope"` Username string `json:"username"` Password string `json:"password"` Tag string `json:"tag"` Avatar string `json:"avatar"` RefreshToken string `json:"refresh_token"` }
Source Files ¶
- account.go
- application.go
- auth.go
- base.go
- cas.go
- casbin_adapter.go
- cert.go
- enforcer.go
- ldap.go
- ldapserver.go
- link.go
- model.go
- oidc_discovery.go
- organization.go
- payment.go
- permission.go
- product.go
- provider.go
- record.go
- resource.go
- role.go
- saml.go
- service.go
- syncer.go
- system_info.go
- token.go
- types.go
- user.go
- user_upload.go
- util.go
- verification.go
- webauthn.go
- webhook.go