Newest 'auth0' Questions

Q&A for professional and enthusiast programmers

Auth0 - How to use mongoDB on localhost with Auth0

I created a new database connection on Auth0, called local-mongo and I'm trying to use the Create script in order to create a user on my local mongoDB but I keep getting this Socket Hang Up error: [...

Angular 2 Auth0 app works fine but tests throw 'Auth0Lock is not defined' error

I have successfully implemented Auth0 authentication in my Angular 2 app following documentation. I have installed auth0-lock, and typings for both auth0 and auth0-lock via npm install. My app works ...

Implementing 'Caps Lock On' and 'Show Password' in hosted login page

I'm building an application using AngularJS and usin Auth0 for authentication. I wish to let the user know when Caps Lock is enabled. Same as when we log into Windows; the yellow string that says ...

How to implement auth0 in zend framework app which is running at localhost in apache server [closed]

I've been trying to implement auth0(auth0.com) in a php application which is based on Zend framework2 from a local machine. I've been searching for documentation, example or tutorial but found ...

Auth0 with React PropTypes

How to add Auth0 with React PropTypes? index.js import App from '../components/App'; import WelcomeRoute from './Welcome'; import SettingsRoute from './Settings'; import CampaignRoute from './...

Page not loading after Auth0 login/redirect

I'm running through the Angular 2 quick start on Auth0's website and am getting stuck after logging in. I have "https://localhost:3000/Plan/Dashboard" set as both my Allowed Callback URL as well as my ...

Auth0: authenticated() incorrectly returning false after redirect following succesful login

I'm using Auth0 with Angular 2. Everything seems to be working, however, I would like to automatically open the login popup if the user isn't logged in when the page loads, so I added the following ...

Auth0 OWIN API not validating JWT token when published via Docker Container on AWS EC2

My OWIN Web.API 2 Hosted on EC2 will not authorize a JWT token. I have tested the functionality locally with out a problem but once I publish it out to my docker container hosted on EC2 it responds ...

Is there any way to programmatically hide or detect the open state of react-native-lock modal?

Using react-native-lock on a react-native project. I tried calling lock.hide() but I get an error Auth0LockModule must not be null. Is there any way of getting the modal's window state to know ...

Validate JWT token signed with RS256 in Knock (rails)

I am trying to connect React app and Rails app using Auth0. It used to be super simple since tokens were signed with HS256. But since auth.js v8 jwt tokens signed with RS256. I don't have problems ...

Roles are Updating Automatically After Login

I am using auth0 for storing user information including roles and permissions. In my application I have user management module which can change roles of user. And I am able to change role also by ...

Auth0 Credentials object's Expire date property is always nil

I am using Auth0 SDK version 1.1.0. I am using openid name email offline_access scopes. I am successfully getting credential object in the success response. But credential's expiresIn object always ...

Filter chain halted as :authenticate_user rendered or redirected Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)

I am trying to setup a Rails API using auth0 for authentication. I have followed the instructions at Auth0 rails API quickstart. This is how my User model is: class User < ActiveRecord::Base ...

Auth0 - Retrieve user after authorizing with facebook using the authorize method

I'm wondering if there's a way available when using the Auth0-JS with React, to retrieve the newly created user when using the authorize method. Here's the sample code: import { EventEmitter } from '...

Does AWS Cognito Federated Identity support multiple iOS users (one at a time)?

My app has user accounts using AWS Cognito Federated Identities. But when one user logs out and another logs in, the second is given the same identity id as the first - and so accesses the same ...

How to Add a single user to roles

We are using auth0 for storing users with roles details. We want to update user's role in auth0 programatically though API call. We are following below article, User Profile Update We want to use ...

Auth0 Additional properties not allowed: memberships

I am using Auth0 Delegated Administration Extension to manage users. When I am trying to create user, I am getting this error. Oh snap! You got an error! An error occurred while creating the ...

How do I create a ParseUser using Auth0 in Android

Parse and Auth0 is very useful for efficiently creating a backend and authentication for different social logins. I was not able to find any information in the web specific to Android. Can anyone ...

Auth0 - Logging out of all social media accounts linked when logging out of the application

I have this Authentication system set up with React and Auth0-Lock. Once a user logs in with their username and password there's an option to link a social media account, like FB for example. Now, ...

Using Auth0 for Google Authentication in Ionic2 running in Browser Offline Access

I am trying to use Auth0 for my Ionic2 test app. I am trying to get Google login working in 'ionic serve' or 'ionic run browser'. This is my Auth0 setup auth0 = new Auth0({clientID: 'yyy', domain: '...

How do I return the id property of the user object in Apollo?

When I place the below in a React component that queries the user model I am able to get the entire user object as queried by graphQL including the id property: console.log(this.props.data.user) But ...

How to configure AspNetCore Identity and Auth0

I created a sample project within VS 2017 using ASP.NET Core Templates 1.1 (Web Application) changing the authentication to be Individual User Accounts. From there I followed the instructions at ...

How to send the IP Address of a visitor along in Auth0?

I'm using auth0 in the back-end as part of a signup/login system, everything's working great so far. But i have noticed that all the users' accounts are apparently based in Ireland ( which is where ...

Authorization Code flow vs. resource owner password grant for trusted applications

I'm having an issue trying to resolve this in my head... Authorization code flow seems to be for 3rd party applications, which is why is makes the user grant permission to the application at the ...

Sending OAuth token works in Postman but does not work in RestSharp

I tried to send a bearer token to an Auth0 API using Postman and it works perfectly. I then tried the same using RestSharp (in c#) but it doesn't work at all. Below is my code. I've tried many ...

Auth0 android native sdk still loading up web page for login

Hey i am trying to use auth0 authentication my android app , and i use fb and gmail , the thing is unlike other authentication providers like firebase , g+, fb etc , why does auth0 open a web page and ...

Auth0 Single Sign On between Android app and wordpress website

We have implemented Auth0 and Lock on a native Android app and a wordpress website ( using the auth0 plugin ) For this puprose, two different clients have been created and the option "Use Auth0 ...

Decoding the token doesn't give user profile

I have been trying to solve this for several days. I followed the tutorial in Auth0's documentation. After decoding the token with express-jwt: export let headerJWTCheck = expressJwt({ secret: '*...

auth0 role authentication for webapi and winform client

I am trying to setup a role authentication from winform client to web api service using auth0 winform, server , authorization extension. From the winform, I can authenticate and get the access_token ...

Auth0 does not return user information immediately after creation

Auth0: Sign up your user Grep userId from response (I used jq) Get user information by id immediately >> Returns nothing! Repeat step 3 in 1 second >> OK Check out this script user=$(curl -s -X ...

Auth0 nickname property works after reload in angular 2

I want to display the name of the user when he logs in using auth0. When the user signs in the name is not shown in the nav bar. But when we reload the page the name appears. app.component.ts file ...

CanActivate routing works on localhost not on server

I am using auth0 for authentication. In my angular app I have an AuthGuard to prevent routing to the angular app during authentication with auth0. During the authentication the url looks like this ...

Auth0 - Sharing jwt between 2 different clients

Let say I have 2 clients: SPA (angular) e.g. client_id : 00001 API (stateless - rails)e.g. client_id : 00002 Implementing implicit flow I know that I can get the access to the access_token for ...

Auth0-js Custom Login - 401 Unauthorized

I've been working off of this React Quickstart on auth0 https://auth0.com/docs/quickstart/spa/react/02-custom-login , trying to implement a custom login. When I try to Login I get a 401 Unauthorized ...

passing a query string parameter through auth0 to the app

I have an ASP.NET + OWIN app. I have auth0 setup using the nuget package they provide. Log In/Out works as expected. I'm trying to create a kind of invite system. When a record is created in the ...

Got App ID Uri was not configured error when using Azure AD connection

I'm using Auth0 for authentication. While validating user with their credentials I am getting below error, App ID Uri was not configured I have 2 clients, One client is using database connection, ...

Auth0 in Ionic2 running in Browser gives Uncaught can't find relay frame in callback

I am trying to get Auth0 working in Browser using ionic run browser I have followed the guides from Auth0. I am using auth0-7.6.1.min.js lock/10.10.2/lock.min.js versions. navigation to ...

Signin-auth0 not called when [Authorize] is required

I'm using the Auth0 ASP.NET Core Quickstart and finding that when I decorate an IActionResult with [Authorize], instead of being taken to the Auth0 Lock login challenge, I'm taken to a blank screen. ...

Laravel Auth0 Unauthorized user

My application is a single page app using Angular 1.x on the client side and Laravel 5.3 for my server/api. I easily managed to make the Auth0 authentication working on my client side (angular) and it ...

Angular 2 JWT AuthHttp error 401 not catched

I have this function in Angular 2 which works well on normal circonstances: private callGetUserService(url: string, id: string): Observable<any> { return this.authHttp.get(url + id) .map(...

Auth0 Laravel seed project. Always unauthorized

Trying to use Postman to test my app. Got an access_token and id_token by posting to /oauth/ro using a test use I created on Auth0's dashboard. Now in the seed project there's this route /api/...

Auth0 angular 2 child routes

hi guys i have a problem with my app recently add a auth0 service for login the problem is basically, when access a parent component users, can access without a problem, the issue comes when I try to ...

Auth0: NoSuchMethodError while authentication

The NoSuchMethodError happens when i make a request to secured resource. Project based on Grails 3.2.5 which based on Spring Boot 1.4.4 AppConfig: @EnableWebSecurity(debug = true) @Configuration @...

Google Cloud Endpoints - Auth0 - “id_token verification failed: Invalid token signature”

I am trying to setup Auth0 with Google Cloud Endpoints. I followed instructions from https://cloud.google.com/endpoints/docs/frameworks/python/quickstart-frameworks-python https://cloud.google.com/...

Can't find variable: Auth0Lock Ionic2 Auth0

I was attempting to add Auth0 to my Ionic 2 application and ran into an error saying "Can't find variable: Auth0Lock". My confusion about this was that the variable was declared, and it was of type "...

auth0 authorization to asp.net core api

I started doing angular2 + asp.net core application, started implementing Auth0. I created client application and a user. Here is client application setup, provided url for Api: User login works ...

Decide using com.auth0 or io.jsonwebtoken for JWT in Java

From today, I am learning the JWT process by myself. And I want to create a simple application, where I can create a token with RS256, and verify it. But I am not sure, which dependency should I use, ...

i want to perform a redirect from a service in my angular 2 app

I am learning angular 2 and i am trying to create a scenario where my user is presented with a home page and logs into my application using Auth0 after which i want the user to be redirected to a ...

How do you solve Auth0's URL Mismatch error

I'm trying to implement Auth0 with lock (version 10.11.0) inside my Angular2 app. Auth0 works if I list every possible route in Auth0's client's Allowed Callback URLs setting. It seems Auth0 picks ...

Auth0 Delegated Administration Extension

I am trying to use Auth0 Delegated Administration Extension in my app. For that, need to add a config file as below. { "AUTHORIZE_API_KEY": "mysecret", "EXTENSION_SECRET": "mysecret", "WT_URL": ...
Translating... 0%