Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 invalid token error when try to explore swagger API of microservices from jhipster registry #294

Closed
1 task done
mkawczynski07 opened this issue Sep 14, 2018 · 1 comment

Comments

@mkawczynski07
Copy link

mkawczynski07 commented Sep 14, 2018

Overview of the issue

I run jhipster registry from sources with:
$ ./mvnw -Pprod
I added UAA and one microservice from jhipster with defaults. After all of them build I am unable to check API definitions from jhipster registry. I get 401 invalid token error.

JHipster Registry Version(s)

JHipster Registry 4.0.1

Browsers and Operating System

Chrome Version 69.0.3497.81 (Official Build) (64-bit)
Kubuntu 18.04 LTS

  • Checking this box is mandatory (this is just to show you read everything)
@ruddell
Copy link
Member

ruddell commented Sep 14, 2018

UAA support for the registry was just recently added and will be in the next release. If you want to have it early, you can make the following changes:

  • In your UAA app's UaaConfiguration.java, add .authorities("ROLE_ADMIN") here.

  • Then you can use the develop tag for the jhipster-registry Docker image, and add the uaa profile to that container's SPRING_ACTIVE_PROFILES

    • If you prefer to run the JHipster Registry from source, you can clone the jhipster-registry repository and check out the develop branch
    • Make sure the registry uses the uaa profile

@ruddell ruddell closed this as completed Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants