baisc structure and server begin server impl
This commit is contained in:
parent
26bd873f4e
commit
f6ba7ab75e
17 changed files with 575 additions and 0 deletions
18
example/server/default/default.go
Normal file
18
example/server/default/default.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/caos/oidc/example/internal/mock"
|
||||
"github.com/caos/oidc/pkg/server"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
config := &server.Config{
|
||||
Issuer: "test",
|
||||
}
|
||||
storage := &mock.Storage{}
|
||||
handler := server.NewDefaultHandler(config, storage)
|
||||
server.Start(ctx, handler)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue