You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Next, you have to configure your web page for Sign in with Apple. Follow the gui
14
14
# Example
15
15
## Using `AppleAuthProvider.java``AppleClientPrivateKeyFactory.java`
16
16
First order of business should be creating an instance of `ECPrivateKey` representing the client's(your) private key.<br/>
17
-
`AppleKeyProvider` can help you create a `ECPrivateKey` if you have your private key as string or stream (from a p8 for example).
17
+
`AppleClientPrivateKeyFactory` can help you create a `ECPrivateKey` if you have your private key as string or stream (from a p8 for example).
18
18
19
19
Creating a new instance of `AppleAuthProvider`, should be trivial at this point. The only two parameters that are not
20
20
self explanatory are the `SecretGenerator` and the collection of scopes.<br/>
@@ -30,10 +30,10 @@ Once you have your `AppleAuthProvider` instance you can:
30
30
## Handling initial response from Apple
31
31
After the user clicks on the "Sign in with Apple" button on your page they will be redirected to https://appleid.apple.com/.
32
32
After they provide their credentials Apple will make a POST request to the url that you have specified as Redirect URL.
33
-
It will contain a ```code``` field. Its contents is what should be handed down to `makeNewAuthorisationTokenRequest` in order retrieve thee authorization token (it will also contain the state used to create the redirect url).
33
+
It will contain a `code` field. Its contents is what should be handed down to `makeNewAuthorisationTokenRequest` in order retrieve the authorization token (it will also contain the state used to create the redirect url).
34
34
Keep in mind that tokens returned from Apple are short-lived, so you should create a session or a user in your system
35
-
using the returned ```AppleAuthorizationToken``` object. After that you can verify if the user is
36
-
still logged in using "Sign in with Apple" by retrieving a refresh token using the ```makeNewRefreshTokenRequest``` method.
35
+
using the returned `AppleAuthorizationToken` object. After that you can verify if the user is
36
+
still logged in using "Sign in with Apple" by retrieving a refresh token using the `makeNewRefreshTokenRequest` method.
37
37
38
38
```java
39
39
publicclassAppleIdTokenManager {
@@ -44,14 +44,14 @@ still logged in using "Sign in with Apple" by retrieving a refresh token using t
0 commit comments