spring-attic / spring-cloud-security

Security concerns for distributed applications implemented in Spring
Apache License 2.0
531 stars 245 forks source link

How to add a custom tokenGranter bean,for example I want to add a custom tokenGranter named MobileTokenGranter ,it can get access_token from user's sms code to authencate #211

Closed 99bird closed 5 years ago

99bird commented 5 years ago
ryanjbaxter commented 5 years ago

Can you please provide a better description of the problem and also provide a sample that reproduces the issue?

99bird commented 5 years ago

image I want add a custom TokenGranter,but I don't how config it

99bird commented 5 years ago

image The TokenGranter bean is fixed , it can't custom config it

spencergibb commented 5 years ago

That's really a spring security question isn't it?

99bird commented 5 years ago

image I'm not sure whether this is allowed. I want add a custom tokenGranter to the tokenGranter list . it can do something like other tokenGranter beans

spencergibb commented 5 years ago

I don't know either, please ask in spring security.