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

Access current base URL from ConnectAuthCodeTokenGranter #1

Closed
aanganes opened this issue Feb 22, 2012 · 2 comments
Closed

Access current base URL from ConnectAuthCodeTokenGranter #1

aanganes opened this issue Feb 22, 2012 · 2 comments

Comments

@aanganes
Copy link
Contributor

The "issuer" field of the IdTokens created when passing through the ConnectAuthCodeTokenGranter needs to be set to the server's current base URL. org.mitre.Utility.findBaseUrl() will produce that URL if given an HttpRequest, but the request object is not available inside the token granter. For now, the token granter is using a dummy string value.

Is there a way to properly insert the (dynamically discovered) current base URL into the token granter? Or should this value be statically configured at deployment time?

@jricher
Copy link
Member

jricher commented Feb 22, 2012

Ideally, it would be discovered on deployment, but Spring doesn't seem to have a mechanism for that.

@aanganes
Copy link
Contributor Author

We are now using the ConfigurationPropertiesBean to insert the base url.

theanuradha pushed a commit to theanuradha/OpenID-Connect-Java-Spring-Server that referenced this issue Apr 9, 2020
Refactoring the common submodule - part1
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

2 participants