Skip to content

Commit cf20f6b

Browse files
committed
Another tweak to README
1 parent 13aa41a commit cf20f6b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,17 @@ You can also install it with the following:
109109

110110
`composer require samyoul/u2f-php-server-examples`
111111

112+
113+
1. [Compatibility Code](#compatibility-code)
114+
2. [Registration Code](#registration-code)
115+
1. [Step 1: Starting](#registration-step-1)
116+
1. [Step 2: Talking to the HID](#registration-step-2)
117+
1. [Step 3: Validation & Storage](#registration-step-3)
118+
3. [Authentication Code]()
119+
1. [Step 1: Starting]()
120+
1. [Step 2: Talking to the HID]()
121+
1. [Step 3: Validation & Storage]()
122+
112123
### Compatibility Code
113124

114125
You'll only ever need to use this method call once per installation and only in the context of debugging if the class is giving you unexpected errors. This method call wil check your OpenSSL version and ensure it is at least 1.0.0 .
@@ -124,6 +135,7 @@ var_dump(U2F::checkOpenSSLVersion());
124135

125136
### Registration Code
126137

138+
#### Registration Step 1:
127139
**Starting the registration process:**
128140

129141
We assume that user has successfully authenticated and wishes to register.
@@ -153,11 +165,12 @@ $jsSignatures = json_encode($registrationData['signatures']);
153165
echo View::make('template/location/u2f-registration.html', compact("jsRequest", "jsSignatures"));
154166
```
155167

168+
#### Registration Step 2:
156169
**Client-side, Talking To The USB**
157170

158171
Non-AJAX client-side registration of U2F key token. AJAX can of course be used in your application, but it is easier to demonstrate a linear process without AJAX and callbacks.
159172

160-
```php
173+
```html
161174
<html>
162175
<head>
163176
<title>U2F Key Registration</title>
@@ -204,6 +217,7 @@ Non-AJAX client-side registration of U2F key token. AJAX can of course be used i
204217
</html>
205218
```
206219
220+
#### Registration Step 3:
207221
**Validation and Key Storage**
208222
209223
This is the last stage of registration. Validate the registration response data against the original request data.

0 commit comments

Comments
 (0)