Sunbird-RC / community

Repo to enable discussions, issue tracking & documentation for the Sunbird-RC projects
MIT License
12 stars 23 forks source link

[BUG]: #345

Closed LordEliseus closed 1 year ago

LordEliseus commented 1 year ago

What is the bug related to?

Registry Core

What went wrong?

Hello.. I have a 401 when i attempt to create a schema. The process of documentation.

registry init
and api/v1/Schema with bearer set with admiuser create in keycloak.

Need help

What did you expect to see?

200 OK SUCCESSFULL

Additional Context

No response

Relevant logs/output (if any)

No response

tejash-jl commented 1 year ago

@LordEliseus can you check if the token contains the admin role

{
...
"realm_access": {
    "roles": [
      "admin",
      "offline_access",
      "default-roles-sunbird-rc",
      "uma_authorization"
    ]
  },
...
}
LordEliseus commented 1 year ago

Thanks @tejash-jl. But in found the mistake, it's keycloak url . I change keycloak:port on service registry to my ip adress and it works.