mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-18 07:33:15 +00:00
create Idp
This commit is contained in:
@@ -2,13 +2,20 @@ package selfhosted
|
||||
|
||||
import "context"
|
||||
|
||||
type OIDCIdProvider interface {
|
||||
type OIDCIdPDiscoveryContents interface {
|
||||
Discovery() ([]byte, error)
|
||||
JWK() ([]byte, error)
|
||||
JWKsFileName() string
|
||||
}
|
||||
|
||||
type OIDCIdPDiscovery interface {
|
||||
CreateStorage() error
|
||||
Upload(ctx context.Context, o OIDCIdPDiscoveryContents) error
|
||||
Endpoint() string
|
||||
}
|
||||
|
||||
type OIDCIdPCreator interface {
|
||||
CreateStorage() error
|
||||
Upload(ctx context.Context, o OIDCIdProvider) error
|
||||
type OIDCIdP interface {
|
||||
Create(ctx context.Context) (string, error)
|
||||
IsUpdate() (bool, error)
|
||||
Update(ctx context.Context) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user