Skip to content

Commit

Permalink
#44 front end JavaScript library with key obfuscated
Browse files Browse the repository at this point in the history
  • Loading branch information
drnow4u committed Mar 23, 2022
1 parent 0358336 commit ff94b7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/explanations/challenge15.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== Docker COPY and WORKDIR

When we start new project usually we are focus on new festers implementation than on security aspect.
Sometimes Single Page Application or mobile application need to access information for themself rather then on behalf of a user.
When we start new project usually we are focus on new feature implementation than on security aspect.
Sometimes Single Page Application or mobile application need to access information for themselves rather than on behalf of a user.
For this purpose OAuth provides the `client_credentials` flow to get access token.
In such situation it easy to store client secrets in front-end or mobile application code.
In such situation it's easy to store client secrets in front-end or mobile application code.

What about looking for it in the Development Tools in browser?
4 changes: 2 additions & 2 deletions src/main/resources/explanations/challenge15_reason.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*Why using Single Page Application or Mobile application to put client secret in is a bad idea*
*Why using Single-Page Application or Mobile application to put client secret in is a bad idea*

As you can tell by now, you can easily detect any secret that stored within a Single Page Application or Mobile application.
Authorization Code Flow with Proof Key for Code Exchange (PKCE)
To prevent such situation Authorization Code Flow with Proof Key for Code Exchange (PKCE) is used.

0 comments on commit ff94b7e

Please sign in to comment.