[keycloak-user] page not rendered in AngularJS app after "Terms and conditions" are declined...

Thomas Darimont thomas.darimont at googlemail.com
Tue Mar 8 01:27:12 EST 2016


Adrian, which Keycloak Version are you using?

Cheers,
Thomas
Am 08.03.2016 7:25 vorm. schrieb "Stian Thorgersen" <sthorger at redhat.com>:

> I'm not quite following, but I tried the following:
>
> # Open
> http://localhost:8080/auth/admin/master/console/#/realms/master/clients
> # Logout
> # Add terms and condition required action to user
> # Login
> # Decline terms and condition
> # Routed back to login page as admin console requires authenticated user
> # Login
> # I'm now on #/realms/master/clients, so the fragment doesn't seem to be
> lost as part of rejecting terms and conditions
>
> On 7 March 2016 at 13:19, Adrian Matei <adrianmatei at gmail.com> wrote:
>
>> Hi everyone,
>>
>> Has any of you experienced the following behavior:
>> we have an AngularJS app with some of its resources protected by Keycloak
>> - setup:
>> var auth = {};
>> angular.element(document).ready(function () {
>>     var env = 'keycloak';
>>     var keycloakAuth = new Keycloak(env + '.json');
>>     keycloakAuth.init({onLoad: 'check-sso'})
>>         .success(function () {
>>         auth.authz = keycloakAuth;
>>         module.factory('Auth', function() {
>>             return auth;
>>         });
>>         angular.bootstrap(document, ["client_id"]);
>>     }).error(function () {
>>
>>     });
>> });
>>
>> Everything works as expected, except that in the registration process if
>> the user does NOT accept the "Terms and Conditions" the page where it came
>> from, present in the redirect_fragment is not rendered - but it is being
>> rendered when I refresh the page as expected...
>>
>> Thanks,
>> Adrian
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160308/3130efb4/attachment.html 


More information about the keycloak-user mailing list