gravitee-io / issues

Gravitee.io - API Platform - Issues
64 stars 26 forks source link

[oauth] Oauth2 on AM Web UI not working #815

Closed SuperMasterBlasterLaser closed 7 years ago

SuperMasterBlasterLaser commented 7 years ago

Hello.

I have downloaded standalone gateway and access management web ui.

When I launch gateway it launches on localhost:8092 and ui on localhost:8081

In my constants.json I have written this

{
  "portalTitle": "Access Management",
  "baseURL": "http://localhost:8092/management",
  "authentication": {
    "oauth2": {
      "authorize": "http://localhost:8092/admin/oauth/authorize",
      "userInfo": "http://localhost:8092/admin/userinfo",
      "clientId": "admin",
      "redirectUri": "http://localhost:8081/oauth/callback",
      "logoutUri": "http://localhost:8092/admin/logout?target_url=http://localhost:8081/logout/callback"
    }
  }
}

However when login finishes successfully it redirects to 4200 port and doesn't work.

brasseld commented 7 years ago

Hi.

There is absolutely no reason to be redirected to 4200. Are you trying to access the management UI using the admin account ?

SuperMasterBlasterLaser commented 7 years ago

@brasseld Yes I'm entering by writing admin adminadmin

brasseld commented 7 years ago

@SuperMasterBlasterLaser perhaps you have an issue with your browser cache, no ?

There is no way to retrieve such port (4200), so the only thing I'm seeing, is a problem with the cache. Can you have a try by disabling it or force refresh of your page ?

brasseld commented 7 years ago

No more information.

I'm closing it.

wenwenbaba commented 5 years ago

In graviteeio-am-management-ui-2.5.0 --> constants.json configuration like this --> "redirectUri": "http://192.168.88.233:4200/login/callback" but , I can't find 4200 port anywhere .