Questions tagged [aurelia-auth]

aurelia-auth is a token-based authentication plugin for Aurelia

aurelia-auth is a token-based authentication plugin for Aurelia with support for popular social authentication providers (Google, Twitter, Facebook, LinkedIn, Windows Live, FourSquare, Yahoo, Github, Instagram ) and a local stragegy, i.e. simple username (email) and password.

18 questions
3
votes
1 answer

Aurelia nav-bar VM Not Working

I followed the examples for setting up a nav-bar.html and a nav-bar.js in the Aurelia tutorial. Later, I wanted to add some functionality to the nav-bar.js VM but found that non of it's properties or methods are ever called. I'm trying to use…
Don Fitz
  • 1,144
  • 17
  • 32
3
votes
1 answer

Configuration for getting JWT from IdentityServer with Aurelia-Auth

I am having trouble getting an JWT from IdentityServer3. I am using aurelia with aurelia-auth. The error I am getting from IdentityServer is "The client application is not known or is not authorized." Was wondering what I am missing in the…
Scott
  • 11,046
  • 10
  • 51
  • 83
2
votes
1 answer

Aurelia Redirection to the anonymous page or any other page with default access-token without going to login page....?

I developing a demo app which is having a login page., By default I am loading to that default page. But For some pages I want to go with the URL directly redirect to that page. But aurelia default loading to the login page. How can I redirect to…
2
votes
0 answers

Aurelia auth login issue

I have the following problem with aurelia-auth, here is common login snippet that I use: login() { return this.authService.login(this.email, this.password) .then(response => { console.log("Login response" +…
Slyfest
  • 21
  • 3
1
vote
2 answers

How to set state to oidc-client-js in aurelia js

I want to add state while initiating login. tried this way : let obj = {state: 'customurl'}; usermanager.signinRedirect(obj); and extracting : usermanager.signinRedirectCallback().then(res => { res.state }); this is returning 'undefined'. please…
1
vote
1 answer

Using Aurelia CLI with the new webpack option, how would I add a reference to aurelia-auth

I set up a new Aurelia project using the latest aurelia-cli. I chose to use webpack and TypeScript. It appears there is not much in the way of documentation when it comes to adding plugins into a project when using webpack. I would like to add…
Jereme
  • 1,445
  • 1
  • 16
  • 32
1
vote
2 answers

How to return to view after authentication in Aurelia

I have a view that can be accessed by a direct link from an email. Ex. http://myServer:7747/#/pics/ClientId/YYYY-MM-DD So this is set up using a route: { route: ['/pics', '/pics/:clientId/:sessionDate', 'pics'], name: 'pics', moduleId:…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
1
vote
1 answer

Aurelia auth - custom response message - console error

Using this aurelia-auth plugin together with .NET Core webAPI, I wish to return a custom error when user tries to log in with incorrect username and/or password. WebAPI: public HttpResponseMessage Login() { if (passwordValid) { …
Reft
  • 2,333
  • 5
  • 36
  • 64
1
vote
1 answer

Aurelia authentication: How to obtain the user id

I am using the aurelia-auth library in a new project. Everything seems to be correct so far, but I am unable to show the user information on the navigation bar. The library provides some functions that seems to provide such information, like…
jap1968
  • 7,747
  • 1
  • 30
  • 37
1
vote
2 answers

Aurelia auth response

I am using aurelia auth for login. But I can't get error message from server. In catch method err.response is undefined. Err is object with body of type Readable stream. Below is my code: this.auth.login(bodyContent) .then(response=>{ }) …
manza
  • 322
  • 1
  • 11
1
vote
2 answers

Aurelia router not working when resetting root

I want to use aurelia-auth in my app and also have a login page that is completely separate from the rest of the app. I have been following the tutorial at this link: …
a2345sooted
  • 569
  • 5
  • 20
1
vote
1 answer

Rebuilding routes after refresh

I'm having a bit of trouble getting some routing stuff working in Aurelia. When a user goes to my app, if they have previously authenticated, I want to redirect them to a landing page. If not, direct to a login page. I have the authenticated user…
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
0
votes
1 answer

Token not being added to local storage after successful request

I'm having trouble with the aurelia-auth plugin. I can request a token from my back-end and get a successful response - however, my app doesn't appear to be authenticated and no token is saved to local storage. auth-config.js var config = { …
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
0
votes
1 answer

How do I configure FetchClient to use a non-default api when using Aurelia Auth

I'm setting up aurelia-auth and configured endpoints for my authorization server and a protected api: aurelia.use.plugin('aurelia-api', configure => { configure .registerEndpoint('auth', 'http://localhost:5000/') .registerEndpoint('api',…
Rikalous
  • 4,514
  • 1
  • 40
  • 52
0
votes
1 answer

Aurelia Push State App Reload on Login and Logout

When configuring Push State with Aurelia and Visual Studio, I am getting an odd behavior where after I select login my entire app reloads instead of the router just pushing to the homepage. This also happens when I logout, I get to the login screen…
jamesondev
  • 23
  • 4
1
2