keycloak connect backend systems with oauth2
I would like to secure our web services and would like to know if I have understand the concept and how to implement this in keycloak. We have 2 backend systems A and B and keycloak as oauth2 provider. System A consumes services on system B.
- I would like to let system A requests an access token from keycloack with client credentials flow, because this is an backend request only.
- System A sends the request to system B along with this access token
- System B checks the access token against keycloak
- System B sends actual service response if token check has passed or an appropriate failure message.
Is that a good approach and how can we implemnt this in keycloak?
oauth-2.0 keycloak
add a comment |
I would like to secure our web services and would like to know if I have understand the concept and how to implement this in keycloak. We have 2 backend systems A and B and keycloak as oauth2 provider. System A consumes services on system B.
- I would like to let system A requests an access token from keycloack with client credentials flow, because this is an backend request only.
- System A sends the request to system B along with this access token
- System B checks the access token against keycloak
- System B sends actual service response if token check has passed or an appropriate failure message.
Is that a good approach and how can we implemnt this in keycloak?
oauth-2.0 keycloak
add a comment |
I would like to secure our web services and would like to know if I have understand the concept and how to implement this in keycloak. We have 2 backend systems A and B and keycloak as oauth2 provider. System A consumes services on system B.
- I would like to let system A requests an access token from keycloack with client credentials flow, because this is an backend request only.
- System A sends the request to system B along with this access token
- System B checks the access token against keycloak
- System B sends actual service response if token check has passed or an appropriate failure message.
Is that a good approach and how can we implemnt this in keycloak?
oauth-2.0 keycloak
I would like to secure our web services and would like to know if I have understand the concept and how to implement this in keycloak. We have 2 backend systems A and B and keycloak as oauth2 provider. System A consumes services on system B.
- I would like to let system A requests an access token from keycloack with client credentials flow, because this is an backend request only.
- System A sends the request to system B along with this access token
- System B checks the access token against keycloak
- System B sends actual service response if token check has passed or an appropriate failure message.
Is that a good approach and how can we implemnt this in keycloak?
oauth-2.0 keycloak
oauth-2.0 keycloak
edited Nov 15 '18 at 19:19
user3756702
asked Nov 15 '18 at 18:19
user3756702user3756702
105112
105112
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You have three types of access types with keycloak
- public
- confidential
- bearer-only
More information can be found here
https://www.keycloak.org/docs/latest/server_admin/index.html
If Your System A is accessed by other client facing UI then implement System A and System B as bearer-only clients.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53325646%2fkeycloak-connect-backend-systems-with-oauth2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have three types of access types with keycloak
- public
- confidential
- bearer-only
More information can be found here
https://www.keycloak.org/docs/latest/server_admin/index.html
If Your System A is accessed by other client facing UI then implement System A and System B as bearer-only clients.
add a comment |
You have three types of access types with keycloak
- public
- confidential
- bearer-only
More information can be found here
https://www.keycloak.org/docs/latest/server_admin/index.html
If Your System A is accessed by other client facing UI then implement System A and System B as bearer-only clients.
add a comment |
You have three types of access types with keycloak
- public
- confidential
- bearer-only
More information can be found here
https://www.keycloak.org/docs/latest/server_admin/index.html
If Your System A is accessed by other client facing UI then implement System A and System B as bearer-only clients.
You have three types of access types with keycloak
- public
- confidential
- bearer-only
More information can be found here
https://www.keycloak.org/docs/latest/server_admin/index.html
If Your System A is accessed by other client facing UI then implement System A and System B as bearer-only clients.
answered Nov 18 '18 at 13:54
ravthiruravthiru
3,82012135
3,82012135
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53325646%2fkeycloak-connect-backend-systems-with-oauth2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown