Announcement Announcement Module
No announcement yet.
Custom token endpoint Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom token endpoint

    If I want to serve the token from a '/some_path/oauth/token' as opposed to the default '/oauth/token' what are the things I must change?

    I understand I need to change the http pattern for oauth server to
    <http pattern="/some_path/oauth/token".../>
    Also need to add an endpoint url as follows
    <oauth:authorization-server token-endpoint-url="/some_path/oauth/token".../>
    Is there anything else that I need to do for this to work?


  • #2
    Well did you try that and it didn't work? Help us to help you here, please. If it doesn't work what are you seeing (logs, etc.)? Are you using the latest release?

    If you use a DispatcherServlet and it has a /token endpoint at all, then I don't think there is anything else you need to do, but I might be missing something (your code snippets are rather brief). For the url customization to work you would need <mvc:annotation-driven/>, but I'm pretty sure you need that for it to work as an auth server at all.