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
4. Once the package is installed, open the **.csproj** file to ensure if the package reference is added:
124
+
4. Once the package is installed, open the **.csproj** file to ensure if the package reference is added:
129
125
130
126
```js
131
127
<ItemGroup>
@@ -148,14 +144,12 @@ To use an external login provider such as Google on your Umbraco CMS project, yo
148
144
* A Composer to tie it all together.
149
145
* An Umbraco backoffice manifest declaration.
150
146
151
-
You can create these files in a location of your choice. In this tutorial, the files will be added to an `ExternalUserLogin/GoogleAuthentication` folder for the C# classes.
152
-
You will also need an `\App_Plugins\my-auth-providers` folder location for the frontend registration.
147
+
You can create these files in a location of your choice. In this tutorial, the files will be added to an `ExternalUserLogin/GoogleAuthentication` folder for the C# classes. You will also need an `\App_Plugins\my-auth-providers` folder location for the frontend registration.
153
148
154
149
1. Create a new class:`GoogleBackOfficeExternalLoginProviderOptions.cs`.
@@ -282,15 +274,12 @@ public class GoogleBackOfficeAuthenticationOptions : IConfigureNamedOptions<Goog
282
274
}
283
275
284
276
```
285
-
286
277
{% endcode %}
287
278
288
279
5. Replace **YOURCLIENTID** and **YOURCLIENTSECRET** with the values from the **OAuth Client Ids Credentials** window. Or use the [IOptions pattern](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options) to read the values from app settings (or other sources).
289
-
290
280
6. Register both `ConfigureNameOptions` into a composer and add the provider to Umbraco
@@ -326,12 +315,11 @@ public class GoogleBackOfficeExternalLoginComposer : IComposer
326
315
}
327
316
}
328
317
```
329
-
330
318
{% endcode %}
331
319
332
320
7. Register the provider with the backoffice client by adding the following file to the manifest file in `/App_Plugins/my-auth-providers/umbraco-package.json`:
0 commit comments