Add support for data.authorities as alternative to #190

mraible opened this Issue Oct 26, 2016 · 0 comments


None yet
2 participants

mraible commented Oct 26, 2016

Currently, we use the following syntax for locking down states when using ui-router:

$stateProvider.state('jhi-health', {
    parent: 'admin',
    url: '/health',
    sp: {
        authorize: {
            group: 'ROLE_ADMIN'

Other projects (e.g. JHipster) use the following syntax:

$stateProvider.state('jhi-health', {
    parent: 'admin',
    url: '/health',
    data: {
        authorities: ['ROLE_ADMIN'],
        pageTitle: 'health.title'

I'm opening this issue to support both formats and help us add support for ui-router 1.0.

@mraible mraible self-assigned this Oct 26, 2016

@mraible mraible referenced this issue in stormpath/generator-jhipster-stormpath Oct 26, 2016


Add uiRouter config so routes can be limited by group name #14

mraible added a commit to mraible/jhipster-stormpath-example that referenced this issue Oct 27, 2016

@robertjd robertjd closed this in #191 Oct 28, 2016

@robertjd robertjd removed the needs review label Oct 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment