Podcast
Questions and Answers
What role does the OWIN middleware serve in the security architecture of Configured Commerce?
What role does the OWIN middleware serve in the security architecture of Configured Commerce?
Which method is used to obtain a bearer access token in Configured Commerce?
Which method is used to obtain a bearer access token in Configured Commerce?
What is checked by the custom code in the Identity Server?
What is checked by the custom code in the Identity Server?
Where does the cookie authentication middleware operate in the security process?
Where does the cookie authentication middleware operate in the security process?
Signup and view all the answers
What must be set to true in appSettings.config if the Identity Server is disabled?
What must be set to true in appSettings.config if the Identity Server is disabled?
Signup and view all the answers
What is the purpose of the interceptor in sending a bearer token?
What is the purpose of the interceptor in sending a bearer token?
Signup and view all the answers
What does 'grant_type=password' signify in the process of obtaining a bearer token?
What does 'grant_type=password' signify in the process of obtaining a bearer token?
Signup and view all the answers
Which aspect of the architecture does the Session service handle?
Which aspect of the architecture does the Session service handle?
Signup and view all the answers
What is the purpose of the certificate used by the Identity server?
What is the purpose of the certificate used by the Identity server?
Signup and view all the answers
Which command parameter is used to set the expiration date for the self-signed certificate?
Which command parameter is used to set the expiration date for the self-signed certificate?
Signup and view all the answers
Where should the Personal Information Exchange (.pfx) files be stored after export?
Where should the Personal Information Exchange (.pfx) files be stored after export?
Signup and view all the answers
What is required to enable Facebook authentication?
What is required to enable Facebook authentication?
Signup and view all the answers
Which of the following is NOT required for Google authentication?
Which of the following is NOT required for Google authentication?
Signup and view all the answers
Which toggle settings manage Windows account access in the application?
Which toggle settings manage Windows account access in the application?
Signup and view all the answers
What does the Windows Metadata URL setting store?
What does the Windows Metadata URL setting store?
Signup and view all the answers
Which parameter in the batch command designates the key size for the certificate?
Which parameter in the batch command designates the key size for the certificate?
Signup and view all the answers
Study Notes
Configured Commerce Security Architecture
- Authentication Workflow: Configured Commerce uses Identity Server and OWIN middleware to handle user authentication for platform access.
-
Session Service: The Session service provides the
getAccessToken
method, which generates a bearer access token for subsequent requests. - OWIN Middleware: OWIN middleware sits between the Optimizely API and IIS, validating all requests. It uses an Identity Server Token Authentication OWIN middleware to check and validate the bearer token in the request header.
- Cookie Authentication: Cookie authentication middleware is also used within the OWIN workflow.
-
Bearer Token Retrieving: To retrieve a bearer token in an Angular application, call the
getAccessToken
method defined ininsite.session.service.ts
. - Bearer Token Sending: The bearer token fetched from the server is attached to every subsequent request to the website through an interceptor.
-
Configuration: All security-related settings need to be configured in the
appSettings.config
file:-
IdentityServerUrl
: Specifies the URL of the identity server, defaulting towebsiteurl/identity
. -
IdentityServerCertificatePassword
: The password for the client certificate. -
IdentityServerSkipUrlValidation
: Set totrue
if Identity Server is disabled.
-
-
Certificate Signing: Identity Server utilizes certificates to sign authentication tokens. This certificate, separate from the website's SSL certificate, can be self-signed and is configured using the
SigningCertificate
property withinIdentityServerOptions
. -
Certificate Creation: Use the provided batch command to create a self-signed certificate:
makecert -r -pe -n "CN=insiteidentity" -b 01/01/2020 -e 01/01/2023 -eku 1.3.6.1.5.5.7.3.3 -sky signature -a sha256 -len 2048 -ss my -sr LocalMachine
-
Certificate Export: Once installed, export the Personal Information Exchange (.pfx) file from the certificate store and save it to
@"~\App_Data\insiteidentity.pfx."
. - External Authentication: Configured Commerce supports out-of-the-box logins for Windows, Google, and Facebook.
-
Facebook Authentication: Enable by setting the
Allow Sign in with Facebook Account
setting to "YES." Credentials for Facebook integration are stored in the configuration as:-
Facebook App ID
-
Facebook App Secret
-
-
Google Authentication: Enable by setting the
Allow Sign in with Google Account
setting to "YES". Credentials for Google integration are stored in the configuration as:-
Google Client ID
-
Google Client Secret
-
-
Windows Authentication: Enable by setting the
Allow Sign in with Windows Account
setting to "YES." Additional settings control Windows login behavior:-
Use Windows Sign In on Storefront
: Enables or disables Windows login on the Storefront. -
Use Windows Sign In on Admin Console
: Enables or disables Windows login on the Admin Console. -
Windows Metadata URL
: Contains the address to retrieve WsFederation metadata.
-
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz covers the security architecture of Configured Commerce, emphasizing its authentication workflow using Identity Server and OWIN middleware. You'll explore how bearer tokens are generated and sent in Angular applications, alongside the role of cookie authentication in the OWIN workflow. Test your understanding of these crucial concepts in modern web security.