# \[RESOLVED\] API authorize returning # instead of ? in query string

**URL:** <https://forums.eveonline.com/t/resolved-api-authorize-returning-instead-of-in-query-string/178987>\
**Category:** Third Party Developers\
**Created:** [July 29, 2019, 11:45pm UTC](https://forums.eveonline.com/t/resolved-api-authorize-returning-instead-of-in-query-string/178987 "2019-07-29T23:45:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ackoo\_Ooack](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/ackoo_ooack/32/151580_2.png) [@Ackoo\_Ooack](https://forums.eveonline.com/u/Ackoo_Ooack)\
**Post date:** [July 29, 2019, 11:45pm UTC](https://forums.eveonline.com/t/resolved-api-authorize-returning-instead-of-in-query-string/178987/1 "2019-07-29T23:45:22Z")

</div>

I’m trying to get SSO working for me .NET MVC web application.

The action I’m trying to code is like this:

> public IActionResult Auth(string access\_token, string token\_type, int expires\_in)

The problem is, CCP returns the following:

> [https://localhost:5001/auth/#access\_token=1|CfDJ8H](https://localhost:5001/auth/#access_token=1%7CCfDJ8H)…

As you can see, it’s using a # instead of a ? in the query string and my Action doesn’t pick up the query parameters because of it.

Is there anyway to fix this?

Cheers!!

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [July 29, 2019, 11:55pm UTC](https://forums.eveonline.com/t/resolved-api-authorize-returning-instead-of-in-query-string/178987/2 "2019-07-29T23:55:01Z")

</div>

IIRC its a url fragment because you’re doing the implicit flow, which is meant for client side usage, i.e. JS.

Using a server you should probably do the full SSO flow, check out the docs for more information.

> **[OAuth 2.0 for Web Based Applications](https://docs.esi.evetech.net/docs/sso/web_based_sso_flow.html)**
>
> The official repository for ESI documentation

---

<div class="post-metadata">

**Author:** ![Ackoo\_Ooack](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/ackoo_ooack/32/151580_2.png) [@Ackoo\_Ooack](https://forums.eveonline.com/u/Ackoo_Ooack)\
**Post date:** [July 30, 2019, 12:20am UTC](https://forums.eveonline.com/t/resolved-api-authorize-returning-instead-of-in-query-string/178987/3 "2019-07-30T00:20:15Z")

</div>

My bad,

I had the **resposne\_type** set to **token** instead of **code** … changing it to code works perfectly … although the response is now **?code=…** rather than access\_token etc…

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [July 30, 2019, 12:29am UTC](https://forums.eveonline.com/t/resolved-api-authorize-returning-instead-of-in-query-string/178987/4 "2019-07-30T00:29:21Z")

</div>

Read the docs I linked. It explains how the SSO flow works.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [October 28, 2019, 12:29am UTC](https://forums.eveonline.com/t/resolved-api-authorize-returning-instead-of-in-query-string/178987/5 "2019-10-28T00:29:24Z")

</div>

Closed on October 28, 2019, 12:29am UTC

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