Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个oauth2 server中,如何根据不同的clientID支持对应的SignedKey、SigningMethod? #5

Open
zlgale opened this issue Feb 21, 2022 · 0 comments

Comments

@zlgale
Copy link

zlgale commented Feb 21, 2022

例如client1的token的SigningMethod是RS256,client2的是HS256,这种情况该怎么搞。

	mgr.MapAccessGenerate(generates.NewJWTAccessGenerate("", []byte(config.Get().OAuth2.JWTSignedKey), jwt.SigningMethodHS512))
	clientStore := store.NewClientStore()
	for _, v := range config.Get().OAuth2.Client {
		clientStore.Set(v.ID, &models.Client{
			ID:     v.ID,
			Secret: v.Secret,
			Domain: v.Domain,
		})
	}
	mgr.MapClientStorage(clientStore)
@zlgale zlgale changed the title 如果token、 一个oauth2 server中,如何根据不同的clientID支持对应的SignedKey、SigningMethod? Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant