# Flutter PKCE config auth0

**URL:** <https://community.auth0.com/t/flutter-pkce-config-auth0/108873>\
**Category:** Get Help\
**Tags:** google-social-connection, connections\
**Created:** [June 8, 2023, 1:21pm UTC](https://community.auth0.com/t/flutter-pkce-config-auth0/108873 "2023-06-08T13:21:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremals](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jeremals](https://community.auth0.com/u/jeremals)\
**Post date:** [June 8, 2023, 1:21pm UTC](https://community.auth0.com/t/flutter-pkce-config-auth0/108873/1 "2023-06-08T13:21:41Z")

</div>

Hello,  
I followed the auth0 integration tutorial on flutter and I have this error :

\*\*E/PKCE ( 4466): Unable to complete authentication with PKCE. PKCE support can be enabled by setting Application Type to ‘Native’ and Token Endpoint Authentication Method to ‘None’ for this app at ‘https:// … configpage’ \*\*  
**( 4466): [ERROR:flutter/runtime/dart\_vm\_initializer.cc(41)] Unhandled Exception: access\_denied: Unauthorized**

My app is native on [auth0.com](http://auth0.com) and I have no Available Credentials selected

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/f/af736c92227722125faf8912732e85559d8a3445.png)

Here is my config :  
\*\*manifestPlaceholders = [auth0Domain: “[dev-xxxxxxxxxxxxxxx.us.auth0.com](http://dev-xxxxxxxxxxxxxxx.us.auth0.com)”, auth0Scheme: “flutterdemo”] \*\*  
**applicationId “com.auth0.clicker”**

And my callback URL :  
flutterdemo://dev-xxxxxxxxxxxxxxx.us.auth0.com/android/com.auth0.clicker/callback

method : final credentials = await widget.auth0.webAuthentication(scheme: “flutterdemo”).login(redirectUrl : ‘flutterdemo://dev-xxxxxxxxxxxxxxx.us.auth0.com/android/com.auth0.clicker/callback’);

I think I forgot something but I don’t know what … anyone have a solution ?

PS : I already identified myself previously but my callback URL was bad. So I don’t know if the problem occurs during automatic identification or not.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 8, 2023, 6:43pm UTC](https://community.auth0.com/t/flutter-pkce-config-auth0/108873/3 "2023-06-08T18:43:20Z")

</div>

Hello there @jeremals welcome to the community!

> [@jeremals](#):
>
> \*\*E/PKCE ( 4466): Unable to complete authentication with PKCE. PKCE support can be enabled by setting Application Type to ‘Native’ and Token Endpoint Authentication Method to ‘None’ for this app at ‘https:// … configpage’ \*\*  
> **( 4466): [ERROR:flutter/runtime/dart\_vm\_initializer.cc(41)] Unhandled Exception: access\_denied: Unauthorized**

Just to be sure, can you confirm that the application type for the client id being configured in your Flutter app is set to Native in your Auth0 dashboard?

I might also recommend taking a look at our [Flutter sample app](https://github.com/auth0-samples/auth0-flutter-samples) and configuring it using the same client id, callback url, scheme, etc. to see if you can reproduce the error there - This might help us narrow down any potential issue.

Cheers!

---

<div class="post-metadata">

**Author:** ![jeremals](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jeremals](https://community.auth0.com/u/jeremals)\
**Post date:** [June 14, 2023, 10:41am UTC](https://community.auth0.com/t/flutter-pkce-config-auth0/108873/4 "2023-06-14T10:41:42Z")

</div>

Hello,

Thank you for your answer.

My configuration seems correct and I have “native” selected on the dashboard :

![image](https://global.discourse-cdn.com/auth0/original/3X/5/6/56eddb44bdf49a31985c4eb1db8e650d9864be39.png)

I also have this line above the error that I forgot on my first post :

**D/OAuthManager(22210): The parsed CallbackURI contains the following parameters: [code, state]**  
**V/CustomTabsController(22210): Trying to unbind the service**  
**E/PKCE (22210): Unable to complete authentication with PKCE. PKCE support can be enabled by setting Application Type to ‘Native’ and Token Endpoint Authentication Method to ‘None’ for this app at ‘[https://manage.auth0.com/#/applications/xxxxxxxxxxxxxxxxxxxxxxxx/settings](https://manage.auth0.com/#/applications/xxxxxxxxxxxxxxxxxxxxxxxx/settings)’.**  
**E/flutter (22210): [ERROR:flutter/runtime/dart\_vm\_initializer.cc(41)] Unhandled Exception: access\_denied: Unauthorized**  
**I/m.auth0.clicke(22210): oneway function results will be dropped but finished with status OK and parcel size 4**

but :

![image](https://global.discourse-cdn.com/auth0/original/3X/8/2/824679a9ae2c80b887a5736c76df5961266ea26c.png)

---

<div class="post-metadata">

**Author:** ![jeremals](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jeremals](https://community.auth0.com/u/jeremals)\
**Post date:** [June 21, 2023, 9:05am UTC](https://community.auth0.com/t/flutter-pkce-config-auth0/108873/5 "2023-06-21T09:05:00Z")

</div>

My bad 😅

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/0/10dac353597cc8dee2b72ef038de7fe00f995333.png)

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [June 21, 2023, 11:40pm UTC](https://community.auth0.com/t/flutter-pkce-config-auth0/108873/6 "2023-06-21T23:40:38Z")

</div>

Hey @jeremals thanks for following up ✅ - That’s interesting, the Native app type in my dashboard doesn’t have the credentials tab. It’s set to none by default 🤔

---

<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:** [July 5, 2023, 11:41pm UTC](https://community.auth0.com/t/flutter-pkce-config-auth0/108873/7 "2023-07-05T23:41:01Z")

</div>

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