Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

torii endpoints #3

Open
thdotnet opened this issue Feb 9, 2018 · 0 comments
Open

torii endpoints #3

thdotnet opened this issue Feb 9, 2018 · 0 comments

Comments

@thdotnet
Copy link

thdotnet commented Feb 9, 2018

Hi,

I'm used to use adal.js and angular in order to authenticate SPA and Azure AD. Now, I'm using ember and I found torii. What I would like to know if there's a setting where I can specify the backend url. For example, I have two separate apps (frontend / backend), and two applications on azure. I can get the token for the front end app, however when I'm passing the token to the backend app it gives me a 401 error.

for the angular app I usually do like this:

app.config(['$httpProvider', 'adalAuthenticationServiceProvider', function ($httpProvider, adalProvider) {
var endpoints = {
"http://localhost:20440": "https://myazuread.onmicrosoft.com/99999999-9999-9999-9999-999999999999"
};

adalProvider.init({
    instance: "https://login.microsoftonline.com/",
    tenant: "myazuread.onmicrosoft.com",
    clientId: "88888888-8888-8888-8888-888888888888",
    endpoints: endpoints
}, $httpProvider);

}]);

I would like to set the endpoints for the torii lib. Any help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant