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
Also need to add an endpoint url as follows
Is there anything else that I need to do for this to work?
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.