Documentation ¶
Index ¶
- func NewFirewall(issuer string, subject string, scopes fosite.Arguments, p ...ladon.Policy) (firewall.Firewall, *http.Client)
- type FositeMemoryStore
- func (s *FositeMemoryStore) CreateAccessTokenSession(_ context.Context, signature string, req fosite.Requester) error
- func (s *FositeMemoryStore) CreateAuthorizeCodeSession(_ context.Context, code string, req fosite.Requester) error
- func (s *FositeMemoryStore) CreateImplicitAccessTokenSession(_ context.Context, code string, req fosite.Requester) error
- func (s *FositeMemoryStore) CreateOpenIDConnectSession(_ context.Context, authorizeCode string, requester fosite.Requester) error
- func (s *FositeMemoryStore) CreateRefreshTokenSession(_ context.Context, signature string, req fosite.Requester) error
- func (s *FositeMemoryStore) DeleteAccessTokenSession(_ context.Context, signature string) error
- func (s *FositeMemoryStore) DeleteAuthorizeCodeSession(_ context.Context, code string) error
- func (s *FositeMemoryStore) DeleteOpenIDConnectSession(_ context.Context, authorizeCode string) error
- func (s *FositeMemoryStore) DeleteRefreshTokenSession(_ context.Context, signature string) error
- func (s *FositeMemoryStore) GetAccessTokenSession(_ context.Context, signature string, _ interface{}) (fosite.Requester, error)
- func (s *FositeMemoryStore) GetAuthorizeCodeSession(_ context.Context, code string, _ interface{}) (fosite.Requester, error)
- func (s *FositeMemoryStore) GetOpenIDConnectSession(_ context.Context, authorizeCode string, requester fosite.Requester) (fosite.Requester, error)
- func (s *FositeMemoryStore) GetRefreshTokenSession(_ context.Context, signature string, _ interface{}) (fosite.Requester, error)
- func (s *FositeMemoryStore) PersistAuthorizeCodeGrantSession(ctx context.Context, authorizeCode, accessSignature, refreshSignature string, ...) error
- func (s *FositeMemoryStore) PersistRefreshTokenGrantSession(ctx context.Context, ...) error
- type FositeRehinkDBStore
- func (m *FositeRehinkDBStore) ColdStart() error
- func (s *FositeRehinkDBStore) CreateAccessTokenSession(_ context.Context, signature string, requester fosite.Requester) error
- func (s *FositeRehinkDBStore) CreateAuthorizeCodeSession(_ context.Context, code string, requester fosite.Requester) error
- func (s *FositeRehinkDBStore) CreateImplicitAccessTokenSession(_ context.Context, code string, req fosite.Requester) error
- func (s *FositeRehinkDBStore) CreateOpenIDConnectSession(_ context.Context, authorizeCode string, requester fosite.Requester) error
- func (s *FositeRehinkDBStore) CreateRefreshTokenSession(_ context.Context, signature string, requester fosite.Requester) error
- func (s *FositeRehinkDBStore) DeleteAccessTokenSession(_ context.Context, signature string) error
- func (s *FositeRehinkDBStore) DeleteAuthorizeCodeSession(_ context.Context, code string) error
- func (s *FositeRehinkDBStore) DeleteOpenIDConnectSession(_ context.Context, authorizeCode string) error
- func (s *FositeRehinkDBStore) DeleteRefreshTokenSession(_ context.Context, signature string) error
- func (s *FositeRehinkDBStore) GetAccessTokenSession(_ context.Context, signature string, sess interface{}) (fosite.Requester, error)
- func (s *FositeRehinkDBStore) GetAuthorizeCodeSession(_ context.Context, code string, sess interface{}) (fosite.Requester, error)
- func (s *FositeRehinkDBStore) GetOpenIDConnectSession(_ context.Context, authorizeCode string, requester fosite.Requester) (fosite.Requester, error)
- func (s *FositeRehinkDBStore) GetRefreshTokenSession(_ context.Context, signature string, sess interface{}) (fosite.Requester, error)
- func (s *FositeRehinkDBStore) PersistAuthorizeCodeGrantSession(ctx context.Context, authorizeCode, accessSignature, refreshSignature string, ...) error
- func (s *FositeRehinkDBStore) PersistRefreshTokenGrantSession(ctx context.Context, ...) error
- func (m *FositeRehinkDBStore) Watch(ctx context.Context)
- type RDBItems
- type RdbSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FositeMemoryStore ¶
type FositeMemoryStore struct { client.Manager AuthorizeCodes map[string]fosite.Requester IDSessions map[string]fosite.Requester AccessTokens map[string]fosite.Requester Implicit map[string]fosite.Requester RefreshTokens map[string]fosite.Requester }
func (*FositeMemoryStore) CreateAccessTokenSession ¶
func (*FositeMemoryStore) CreateAuthorizeCodeSession ¶
func (*FositeMemoryStore) CreateImplicitAccessTokenSession ¶
func (*FositeMemoryStore) CreateOpenIDConnectSession ¶
func (*FositeMemoryStore) CreateRefreshTokenSession ¶
func (*FositeMemoryStore) DeleteAccessTokenSession ¶
func (s *FositeMemoryStore) DeleteAccessTokenSession(_ context.Context, signature string) error
func (*FositeMemoryStore) DeleteAuthorizeCodeSession ¶
func (s *FositeMemoryStore) DeleteAuthorizeCodeSession(_ context.Context, code string) error
func (*FositeMemoryStore) DeleteOpenIDConnectSession ¶
func (s *FositeMemoryStore) DeleteOpenIDConnectSession(_ context.Context, authorizeCode string) error
func (*FositeMemoryStore) DeleteRefreshTokenSession ¶
func (s *FositeMemoryStore) DeleteRefreshTokenSession(_ context.Context, signature string) error
func (*FositeMemoryStore) GetAccessTokenSession ¶
func (*FositeMemoryStore) GetAuthorizeCodeSession ¶
func (*FositeMemoryStore) GetOpenIDConnectSession ¶
func (*FositeMemoryStore) GetRefreshTokenSession ¶
func (*FositeMemoryStore) PersistAuthorizeCodeGrantSession ¶
func (*FositeMemoryStore) PersistRefreshTokenGrantSession ¶
type FositeRehinkDBStore ¶
type FositeRehinkDBStore struct { Session *r.Session sync.RWMutex AuthorizeCodesTable r.Term IDSessionsTable r.Term AccessTokensTable r.Term ImplicitTable r.Term RefreshTokensTable r.Term ClientsTable r.Term client.Manager AuthorizeCodes RDBItems IDSessions RDBItems AccessTokens RDBItems Implicit RDBItems RefreshTokens RDBItems }
func (*FositeRehinkDBStore) ColdStart ¶
func (m *FositeRehinkDBStore) ColdStart() error
func (*FositeRehinkDBStore) CreateAccessTokenSession ¶
func (*FositeRehinkDBStore) CreateAuthorizeCodeSession ¶
func (*FositeRehinkDBStore) CreateImplicitAccessTokenSession ¶
func (*FositeRehinkDBStore) CreateOpenIDConnectSession ¶
func (*FositeRehinkDBStore) CreateRefreshTokenSession ¶
func (*FositeRehinkDBStore) DeleteAccessTokenSession ¶
func (s *FositeRehinkDBStore) DeleteAccessTokenSession(_ context.Context, signature string) error
func (*FositeRehinkDBStore) DeleteAuthorizeCodeSession ¶
func (s *FositeRehinkDBStore) DeleteAuthorizeCodeSession(_ context.Context, code string) error
func (*FositeRehinkDBStore) DeleteOpenIDConnectSession ¶
func (s *FositeRehinkDBStore) DeleteOpenIDConnectSession(_ context.Context, authorizeCode string) error
func (*FositeRehinkDBStore) DeleteRefreshTokenSession ¶
func (s *FositeRehinkDBStore) DeleteRefreshTokenSession(_ context.Context, signature string) error
func (*FositeRehinkDBStore) GetAccessTokenSession ¶
func (*FositeRehinkDBStore) GetAuthorizeCodeSession ¶
func (*FositeRehinkDBStore) GetOpenIDConnectSession ¶
func (*FositeRehinkDBStore) GetRefreshTokenSession ¶
func (*FositeRehinkDBStore) PersistAuthorizeCodeGrantSession ¶
func (*FositeRehinkDBStore) PersistRefreshTokenGrantSession ¶
func (*FositeRehinkDBStore) Watch ¶
func (m *FositeRehinkDBStore) Watch(ctx context.Context)
type RdbSchema ¶
type RdbSchema struct { ID string `json:"id" gorethink:"id"` RequestedAt time.Time `json:"requestedAt" gorethink:"requestedAt"` Client *fosite.DefaultClient `json:"client" gorethink:"client"` Scopes fosite.Arguments `json:"scopes" gorethink:"scopes"` GrantedScopes fosite.Arguments `json:"grantedScopes" gorethink:"grantedScopes"` Form url.Values `json:"form" gorethink:"form"` Session json.RawMessage `json:"session" gorethink:"session"` }
Click to show internal directories.
Click to hide internal directories.