# Google oauth2.0 405 error

**URL:** <https://community.auth0.com/t/google-oauth2-0-405-error/39197>\
**Category:** Get Help\
**Created:** [March 11, 2020, 4:20pm UTC](https://community.auth0.com/t/google-oauth2-0-405-error/39197 "2020-03-11T16:20:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luis2/32/14258_2.png) [@luis2](https://community.auth0.com/u/luis2)\
**Post date:** [March 11, 2020, 4:20pm UTC](https://community.auth0.com/t/google-oauth2-0-405-error/39197/1 "2020-03-11T16:20:40Z")

</div>

Hello,

I have a Regular Web Application, and I am trying to apply Auth0 authentication using my google accounts. My app is set as Regular Web Application, and Token Endpoint Authentication Method = POST

I am getting 405 Error when auth0 is redirecting back to my app.

```
http://localhost:8080/ 405
accounts.google.ca/accounts/SetSID:<number>

Completed 405 METHOD_NOT_ALLOWED
 Mapped to public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
"ERROR" dispatch for GET "/error", parameters={}
Mapped to public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
Selected 'text/html' given [text/html, text/html;q=0.8]
 Exiting from "ERROR" dispatch, status 405

```

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![rashid779939](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rashid779939/32/27027_2.png) [@rashid779939](https://community.auth0.com/u/rashid779939)\
**Post date:** [March 11, 2020, 6:30pm UTC](https://community.auth0.com/t/google-oauth2-0-405-error/39197/2 "2020-03-11T18:30:46Z")

</div>

Welcome to community @luis2,

Can you please provide some more details, that would help in underdstanding the issue in detail.

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 11, 2020, 6:35pm UTC](https://community.auth0.com/t/google-oauth2-0-405-error/39197/3 "2020-03-11T18:35:41Z")

</div>

What’s your configured callback URL? I assume [http://localhost:8080/](http://localhost:8080/) ?

Please post the code of the Spring controller class that handles this URL (`/`). Does it allow the `POST` method? Because that’s basically what the error message states. I guess it currently only allows for `GET`.

---

<div class="post-metadata">

**Author:** ![luis2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luis2/32/14258_2.png) [@luis2](https://community.auth0.com/u/luis2)\
**Post date:** [March 11, 2020, 8:18pm UTC](https://community.auth0.com/t/google-oauth2-0-405-error/39197/4 "2020-03-11T20:18:29Z")

</div>

Thank you guys so much for your attention. I had found that someone made a mistake creating the endpoints using RequestMapping “/api/v1” wrongly from the Controllers, creating extra GETs outside of the authentication.

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 11, 2020, 8:19pm UTC](https://community.auth0.com/t/google-oauth2-0-405-error/39197/5 "2020-03-11T20:19:12Z")

</div>

Glad you found the issue.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 26, 2020, 8:19pm UTC](https://community.auth0.com/t/google-oauth2-0-405-error/39197/6 "2020-03-26T20:19:14Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
