Results 1 to 2 of 2

Thread: Custom token endpoint

Hybrid View

  1. #1

    Default 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
    Code:
    <http pattern="/some_path/oauth/token".../>
    Also need to add an endpoint url as follows
    Code:
    <oauth:authorization-server token-endpoint-url="/some_path/oauth/token".../>
    Is there anything else that I need to do for this to work?

    Thanks

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •