I have this task where i'm supposed to connect from a web application residing on a completely different domain, to an umbraco instance:
1. members login
2. manage refresh tokens(i found https://github.com/mattbrailsford/umbraco-authu)
3. fetch content from the cms using the rest api(umbraco rest api)
The login part seems to work, that is, getting a token and refresh token by using the lib above, but once i try to fetch content(/umbraco/rest/v1/content), although i pass the bearer token, it returns a 401.
I guess there's a problem with my setup regarding the flow that umbraco uses to authorize the actions, but i really-really-really cannot spot the pain point.
(i think that i should somehow "tell" umbraco that it should use the umbraco-authu to check for token validaty, but i'm not sure this is the right aproach).
REST Api members auth and content endpoints
Hey, everyone!
I have this task where i'm supposed to connect from a web application residing on a completely different domain, to an umbraco instance: 1. members login 2. manage refresh tokens(i found https://github.com/mattbrailsford/umbraco-authu) 3. fetch content from the cms using the rest api(umbraco rest api)
The login part seems to work, that is, getting a token and refresh token by using the lib above, but once i try to fetch content(/umbraco/rest/v1/content), although i pass the bearer token, it returns a 401.
I guess there's a problem with my setup regarding the flow that umbraco uses to authorize the actions, but i really-really-really cannot spot the pain point.
(i think that i should somehow "tell" umbraco that it should use the umbraco-authu to check for token validaty, but i'm not sure this is the right aproach).
Thanks in advance, Dragos
is working on a reply...