# Organization Redirect URI

**URL:** <https://community.auth0.com/t/organization-redirect-uri/81582>\
**Category:** Get Help\
**Created:** [April 12, 2022, 4:09am UTC](https://community.auth0.com/t/organization-redirect-uri/81582 "2022-04-12T04:09:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenishshrestha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jenishshrestha/32/34613_2.png) [@jenishshrestha](https://community.auth0.com/u/jenishshrestha)\
**Post date:** [April 12, 2022, 4:09am UTC](https://community.auth0.com/t/organization-redirect-uri/81582/1 "2022-04-12T04:09:13Z")

</div>

Hello,  
I have been trying auth0-python to authorize the organization. Not quite sure, what I should use as the redirect\_uri. I used the callback uri specified in the application but says invalid callback uri.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 12, 2022, 10:21pm UTC](https://community.auth0.com/t/organization-redirect-uri/81582/3 "2022-04-12T22:21:13Z")

</div>

Hi @jenishshrestha,

Welcome to the Auth0 Community!

Can you please share the request and error response you are seeing?

---

<div class="post-metadata">

**Author:** ![jenishshrestha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jenishshrestha/32/34613_2.png) [@jenishshrestha](https://community.auth0.com/u/jenishshrestha)\
**Post date:** [April 13, 2022, 4:12am UTC](https://community.auth0.com/t/organization-redirect-uri/81582/4 "2022-04-13T04:12:14Z")

</div>

It returns a html error response :

```auto
Callback URL mismatch. https://example.com/ is not in the list of allowed callback URLs

```

But the URL is specified in the the allowed callback URLS.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 13, 2022, 6:25pm UTC](https://community.auth0.com/t/organization-redirect-uri/81582/5 "2022-04-13T18:25:32Z")

</div>

Can you please DM me the name of the tenant, application, and the callback URL you are trying? Thank you.

---

<div class="post-metadata">

**Author:** ![jenishshrestha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jenishshrestha/32/34613_2.png) [@jenishshrestha](https://community.auth0.com/u/jenishshrestha)\
**Post date:** [April 14, 2022, 5:28am UTC](https://community.auth0.com/t/organization-redirect-uri/81582/6 "2022-04-14T05:28:22Z")

</div>

Sorry, It was a silly mistake from me. I was using the callback url specified in Single Page Application. I used the urls from Machine-Machine Application, it is working now. 😅 😅

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 14, 2022, 1:03pm UTC](https://community.auth0.com/t/organization-redirect-uri/81582/7 "2022-04-14T13:03:47Z")

</div>

I’m glad you got it resolved!

From our DM:

> I have one more query for you. Is it possible to directly login the user to an organization using auth0-python sdk? I tried it, but it sends me a html response instead. What I would like to do is directly login the user to the organization and receive an access\_token.

What do you mean by **directly login**?

---

<div class="post-metadata">

**Author:** ![jenishshrestha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jenishshrestha/32/34613_2.png) [@jenishshrestha](https://community.auth0.com/u/jenishshrestha)\
**Post date:** [April 15, 2022, 3:35am UTC](https://community.auth0.com/t/organization-redirect-uri/81582/8 "2022-04-15T03:35:01Z")

</div>

Using the credentials and the organization\_id of the user, fetch the access\_token for the user though auth0-python sdk.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 15, 2022, 1:24pm UTC](https://community.auth0.com/t/organization-redirect-uri/81582/9 "2022-04-15T13:24:41Z")

</div>

Hi @jenishshrestha,

Exchanging a username/password directly for a token requires use of the [Password Grant](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow). Unfortunately, the organizations feature doesn’t support the password grant at this time.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 28, 2022, 10:29pm UTC](https://community.auth0.com/t/organization-redirect-uri/81582/11 "2022-06-28T22:29:04Z")

</div>


