mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-16 00:13:23 +00:00
22 lines
433 B
Go
22 lines
433 B
Go
package selfhosted
|
|
|
|
import "context"
|
|
|
|
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 OIDCIdP interface {
|
|
Create(ctx context.Context) (string, error)
|
|
IsUpdate() (bool, error)
|
|
Update(ctx context.Context) error
|
|
}
|