As the tittle. I'm using Ivy version 6.2 and would like to know how to secure my REST Services using Bearer Authorization instead of basic. Thanks asked 21.06.2018 at 07:31 thminh |
You are free to use any authentication method on modern Axon.ivy platforms. If you need a non standard authorization approach just implement a custom tomcat valve for authentication and authorization: https://developer.axonivy.com/doc/latest/EngineGuideHtml/integration.html#integration-waf-sso Implementation details can be found here: https://developer.axonivy.com/doc/latest/EngineGuideHtml/configuration.html#configuration-tomcat-context-xml or here https://github.com/ivy-samples/tomcatValve ... so far about modern Platforms. But I'm not sure whether this works on the very outdated 6.2 leading edge version. So I suggest that you basically ensure that it works on 7.0 LTS. And may give it a try afterwards in the old 6.2... Keep in mind: it was never the idea that outdated leading edge versions are used productive for a long time. Update as fast as you can if you want to operate a secure engine with well documented supported featureset. answered 22.06.2018 at 02:25 Reguel Werme... ♦♦ |
Thanks for your instructions. I created a custom valve in Ivy 7.1 to validate the bearer token. Inside the method, I get the Authorization token in the header and check if it is valid or not, if not, could I stop the request and throw an unauthorized exception back to the client?
Thanks answered 28.06.2018 at 02:55 thminh 1
in case there is no login information:
..this will just end with the correct HTTP status code. most clients will know how to deal with it.
(28.06.2018 at 06:29)
Reguel Werme... ♦♦
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 21.06.2018 at 07:31
Seen: 3,192 times
Last updated: 02.07.2018 at 02:50