edit README.md

add NOTICE file
Naming of repair methods
This commit is contained in:
xsl
2023-06-05 11:16:23 +08:00
parent 1a14757e21
commit d6cf6be6d4
16 changed files with 106 additions and 190 deletions

View File

@@ -3,23 +3,23 @@ package main
import (
"github.com/go-jose/go-jose/v3"
x_oidc "github.com/xslasd/x-oidc"
"github.com/xslasd/x-oidc/crypto"
"github.com/xslasd/x-oidc/example/server/handler"
"github.com/xslasd/x-oidc/example/server/httpwrapper"
"github.com/xslasd/x-oidc/example/server/storage"
"github.com/xslasd/x-oidc/util"
)
func main() {
httpHandler := handler.NewHttpHandler(":8080")
cr, err := crypto.NewJoseRSAJWT("private.pem", jose.RS256)
httpHandler := httpwrapper.NewHttpHandler(":8080")
cr, err := util.NewJoseRSAJWT("private.pem", jose.RS256)
if err != nil {
panic(err)
}
_, err = x_oidc.NewOpenIDProvider(
&x_oidc.Config{
Issuer: "http://localhost:8080",
Handler: httpHandler,
Storage: storage.NewStorage(),
Crypto: cr,
Issuer: "http://localhost:8080",
OpenIDWrapper: httpHandler,
Storage: storage.NewStorage(),
Crypto: cr,
},
x_oidc.WithAllowInsecure(true),
)