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

Adrian Matei adrianmatei at gmail.com
Mon Mar 7 07:19:58 EST 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160307/8376fc61/attachment.html 


More information about the keycloak-user mailing list