Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
293 views
in Technique[技术] by (71.8m points)

javascript - How can I get the login data when do the authentication by the Keycloak in Parse Server?

I know it so silly, but I just start learning Parse Server for a week. I'm creating a login function with the 3rd party Authentication. I read the docs here Keycloak authentication , but I don't know how can I get the data from the Keycloak server.

{
  "keycloak": {
    "access_token": "access token from keycloak JS client authentication",
    "id": "the id retrieved from client authentication in Keycloak",
    "roles": ["the roles retrieved from client authentication in Keycloak"],
    "groups": ["the groups retrieved from client authentication in Keycloak"]
  }
}

Besides, I'm working with JS SDK to create a login function in the Parse server and Keycloak, but I didn't know how Parse does the authorization via the Keycloak, I'm most grateful if someone can give me some example or some hint. Thank you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...