auth0

Localhost and CORS with Auth0 not allowing me to login

守給你的承諾、 提交于 2021-02-20 19:04:32
问题 I'm making a React app and trying to use Auth0 to authenticate. After trying to log in, it returns this: XMLHttpRequest cannot load https://my-domain.auth0.com/usernamepassword/login. Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. Origin 'http://localhost:3000' is therefore not allowed access. The credentials mode of requests

Localhost and CORS with Auth0 not allowing me to login

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-20 19:04:22
问题 I'm making a React app and trying to use Auth0 to authenticate. After trying to log in, it returns this: XMLHttpRequest cannot load https://my-domain.auth0.com/usernamepassword/login. Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. Origin 'http://localhost:3000' is therefore not allowed access. The credentials mode of requests

Auth0 ProtectedRoute component preventing component from changing with state

北战南征 提交于 2021-02-11 12:52:26
问题 I followed the Auth0 React Authentication guide written here: https://auth0.com/blog/complete-guide-to-react-user-authentication And implemented the ProtectedRoute component as outlined in the tutorial: import React from "react"; import { Route } from "react-router-dom"; import { withAuthenticationRequired } from "@auth0/auth0-react"; import { Loading } from "../components/index"; const ProtectedRoute = ({ component, ...args }) => ( <Route component={withAuthenticationRequired(component, {

Auth0 ProtectedRoute component preventing component from changing with state

耗尽温柔 提交于 2021-02-11 12:52:21
问题 I followed the Auth0 React Authentication guide written here: https://auth0.com/blog/complete-guide-to-react-user-authentication And implemented the ProtectedRoute component as outlined in the tutorial: import React from "react"; import { Route } from "react-router-dom"; import { withAuthenticationRequired } from "@auth0/auth0-react"; import { Loading } from "../components/index"; const ProtectedRoute = ({ component, ...args }) => ( <Route component={withAuthenticationRequired(component, {

How to delete user from Auth0 on Next.js?

烂漫一生 提交于 2021-02-11 12:47:01
问题 I can login and logout users on Next.js after reading these resources amongst others: The Ultimate Guide to Next.js Authentication with Auth0 @auth0/nextjs-auth0 library API Call Example SPA + API: Node.js Implementation for the API But nowhere could I find out if I can delete users using the auth0/nextjs-auth0 library. I also looked into the module's handlers here. Am I right to think there is no way to delete a user using the @auth0/nextjs-auth0 library? If yes, what is the most preferred

How to delete user from Auth0 on Next.js?

☆樱花仙子☆ 提交于 2021-02-11 12:41:22
问题 I can login and logout users on Next.js after reading these resources amongst others: The Ultimate Guide to Next.js Authentication with Auth0 @auth0/nextjs-auth0 library API Call Example SPA + API: Node.js Implementation for the API But nowhere could I find out if I can delete users using the auth0/nextjs-auth0 library. I also looked into the module's handlers here. Am I right to think there is no way to delete a user using the @auth0/nextjs-auth0 library? If yes, what is the most preferred

how to handle failed silent auth error in auth0

霸气de小男生 提交于 2021-02-10 19:55:31
问题 I followed spa react quick start guide and it worked fine for more than a month. Recently i had this error and it is logged on auth0 as 'failed silent error' with no further information. I have been told that it is because of the browsers cookie updates and recommended to use new beta release of auth0-spa-js and change cache location to local storage. And it didn't work either. The code is as follows: auth_config.json: { "domain": "dev.........eu.auth0.com", "clientId": "....eEKkQ............

React: Can't call prop function when it is inside of another function?

杀马特。学长 韩版系。学妹 提交于 2021-02-08 16:54:37
问题 I am trying to move over the Auth0 login function as described in their tutorial. I am able to get it work if I use it like this: <button className="btn" onClick={this.props.route.auth.login.bind(this)}>test</button> but if I set up the button to call a function I define above the render function like this: login() { this.props.route.auth.login.bind(this); } And change the onclick to be like this: onClick={this.login()} or onClick={() => this.login()} Then the auth login modal never opens and

Login with Auth0 was successful but still a 401 'access denied' is returned?

若如初见. 提交于 2021-02-08 14:41:26
问题 I managed to get Auth0 somewhat working for my Vue.js app. The Quickstart Guide was straight forward. So what happened is that I managed to use the login functionality and was prompted with the Auth0 Login dialog. I used my google account to do a quick-login. That also worked. My google account was now visible as a new user in my Auth0 Dashboard. However after the login I was returned to my Vue.js app but the authorization was not successful it seems. The network tab tells me the following: {

aws-amplify with Auth0

帅比萌擦擦* 提交于 2021-02-07 08:55:50
问题 We've got Auth0 and aws-amplify working separately for our React Native App. But, going the next step (even following the Auth0 and AWS docs) for getting the authentication to flow from Auth0 to Cognito/User-Pools has not been working. Yet, we've not found discussion on stack overflow, or Auth0 or others with the same problem. Is it possible that we are missing something? aws-amplify does imply that OpenID Connect and Federated Identities are working, but its possible that the library is not