javascript - How do I architecturally Kerberize an AngularJS application with a JBoss API -
i have nifty angularjs application uses jboss (wildfly 8) restful api retrieve data. integrate corporate environment, requires kerberos authentication. i've see miles of documents , examples, , customized advice internal java developer. problem, @ time, in architecture can/should kerberization take place?
is upon entry angularjs app? in not allow unless ticket authorized?
or challenge each api call? if case, how pass along client kerberos ticket information api call?
if question sounds disjointed, or naive, is. first interaction kerberos.
help appreciated, thanks.
i ran same problem / challenge php rest api on apache webserver kerberos auth.
since angular pure client side every request made 'you' in kerberos terms don't have send ticket. browser sends ticket when request made.
i created login (or check logged-in) api endpoint in php api called before every locationchange in angular. if login action returns false or nothing @ redirected access_denied.html page residing next index.html (angular).
the login action rest endpoint returns userdata , permissions can authorization.
in case (also still searching) have authorization on api level.
since implementation involves corporate webapplication add code examples tomorrow ;)
Comments
Post a Comment