diff --git a/CHANGELOG.md b/CHANGELOG.md
index ce72f72..b73fd71 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
### [Unreleased]
+### [0.3.3] - 2016-05-03
+
+##### Fixed
+- Important bug with PKCE and form submit in Auth Request.
+
### [0.3.2] - 2016-04-26
##### Added
diff --git a/oidc_provider/lib/endpoints/authorize.py b/oidc_provider/lib/endpoints/authorize.py
index 5a89a9b..09365e7 100644
--- a/oidc_provider/lib/endpoints/authorize.py
+++ b/oidc_provider/lib/endpoints/authorize.py
@@ -54,12 +54,11 @@ class AuthorizeEndpoint(object):
self.params.response_type = query_dict.get('response_type', '')
self.params.scope = query_dict.get('scope', '').split()
self.params.state = query_dict.get('state', '')
+
self.params.nonce = query_dict.get('nonce', '')
self.params.prompt = query_dict.get('prompt', '')
-
- # PKCE parameters.
- self.params.code_challenge = query_dict.get('code_challenge')
- self.params.code_challenge_method = query_dict.get('code_challenge_method')
+ self.params.code_challenge = query_dict.get('code_challenge', '')
+ self.params.code_challenge_method = query_dict.get('code_challenge_method', '')
def validate_params(self):
# Client validation.
diff --git a/oidc_provider/templates/oidc_provider/hidden_inputs.html b/oidc_provider/templates/oidc_provider/hidden_inputs.html
index 2bff39d..596414e 100644
--- a/oidc_provider/templates/oidc_provider/hidden_inputs.html
+++ b/oidc_provider/templates/oidc_provider/hidden_inputs.html
@@ -3,6 +3,6 @@
-
-
-
+{% if params.nonce %}{% endif %}
+{% if params.code_challenge %}{% endif %}
+{% if params.code_challenge_method %}{% endif %}
diff --git a/setup.py b/setup.py
index 9ccaeff..9a94039 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-oidc-provider',
- version='0.3.2',
+ version='0.3.3',
packages=[
'oidc_provider', 'oidc_provider/lib', 'oidc_provider/lib/endpoints',
'oidc_provider/lib/utils', 'oidc_provider/tests', 'oidc_provider/tests/app',