<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
In the example, the angular is bootstrapped after the keycloak
authentication is properly finished. It's also because keycloak
authentication requires redirection of browser to KC and then
redirecting back to the app. Theoretically you can combine it that
keycloak authentication flow is called just when user visits some
"secured" URL of your app, but still after redirecting from KC
login screen back to the app, it will be better if angular is
bootstrapped after keycloak authentication is finished (so in the
"success" callback from keycloak.init call as it's done in the
example). <br>
<br>
Also note that there is no authorization in the JS application
itself. The secured part are rest endpoints, which are secured by
Bearer token obtained from the authentication of JS application.
This is done in authInterceptor, which adds the bearer token to
REST requests. <br>
<br>
Marek<br>
<br>
On 5.2.2015 18:39, Jorge Dario Arias Lopez wrote:<br>
</div>
<blockquote
cite="mid:CAG_H39ieccLLmOoR7OcWgZavM31Zm5yDogxA6VkDHbg9FMtbiA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi I'm developing a web page in angular with
keycloak for autorization.
<div><br>
</div>
<div>I followed this example <a moz-do-not-send="true"
href="https://github.com/keycloak/keycloak/tree/master/examples/demo-template/angular-product-app">https://github.com/keycloak/keycloak/tree/master/examples/demo-template/angular-product-app</a>
and it works pretty well.</div>
<div><br>
</div>
<div>Now I want to secure only part of my application. Is there
any way to achieve this behavior.</div>
<div><br>
</div>
<div>Thanks in advance</div>
<div><br>
</div>
<div>Jorge A. </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-dev">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a></pre>
</blockquote>
<br>
</body>
</html>