create Idp

This commit is contained in:
kkb0318
2024-03-31 20:30:15 +09:00
parent ac571e3a97
commit d40d78ca98
8 changed files with 159 additions and 72 deletions
+11 -4
View File
@@ -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
}