KEYCLOAK-2255 Location header should return IdP alias instead of provider ID.
This commit is contained in:
parent
dd6b05224d
commit
d8d0298498
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ public class IdentityProvidersResource {
|
||||||
adminEvent.operation(OperationType.CREATE).resourcePath(uriInfo, identityProvider.getInternalId())
|
adminEvent.operation(OperationType.CREATE).resourcePath(uriInfo, identityProvider.getInternalId())
|
||||||
.representation(representation).success();
|
.representation(representation).success();
|
||||||
|
|
||||||
return Response.created(uriInfo.getAbsolutePathBuilder().path(representation.getProviderId()).build()).build();
|
return Response.created(uriInfo.getAbsolutePathBuilder().path(representation.getAlias()).build()).build();
|
||||||
} catch (ModelDuplicateException e) {
|
} catch (ModelDuplicateException e) {
|
||||||
return ErrorResponse.exists("Identity Provider " + representation.getAlias() + " already exists");
|
return ErrorResponse.exists("Identity Provider " + representation.getAlias() + " already exists");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue