Skip to content

Commit 9e62e00

Browse files
Merge pull request #237417 from cilwerner/patch-10
[GTD][issue][content-health] config-authority is 365 days+ stale and resolves issue
2 parents f7db180 + eefcffa commit 9e62e00

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

articles/active-directory/develop/config-authority.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: active-directory
99
ms.subservice: develop
1010
ms.workload: identity
1111
ms.topic: conceptual
12-
ms.date: 08/28/2019
12+
ms.date: 05/09/2023
1313
ms.author: cwerner
1414
ms.reviewer: oldalton
1515
ms.custom: aaddev
@@ -177,13 +177,17 @@ When the authority URL is set to `"login.microsoftonline.com/common"`, the user
177177

178178
To sign the user into a specific tenant, configure `MSALPublicClientApplication` with a specific authority. For example:
179179

180-
`https://login.microsoftonline.com/469fdeb4-d4fd-4fde-991e-308a78e4bea4`
180+
`https://login.microsoftonline.com/dddd5555-eeee-6666-ffff-00001111aaaa`
181181

182-
The following shows how to sign a user into a specific tenant:
182+
If you want to sign into the Contoso tenant, use;
183+
184+
`https://login.microsoftonline.com/contoso.onmicrosoft.com`
185+
186+
The following shows how to sign a user into the Contoso tenant:
183187

184188
Objective-C
185189
```objc
186-
NSURL *authorityURL = [NSURL URLWithString:@"https://login.microsoftonline.com/469fdeb4-d4fd-4fde-991e-308a78e4bea4"];
190+
NSURL *authorityURL = [NSURL URLWithString:@"https://login.microsoftonline.com/contoso.onmicrosoft.com"];
187191
MSALAADAuthority *tenantedAuthority = [[MSALAADAuthority alloc] initWithURL:authorityURL error:&authorityError];
188192

189193
if (!tenantedAuthority)
@@ -209,7 +213,7 @@ Objective-C
209213
Swift
210214
```swift
211215
do{
212-
guard let authorityURL = URL(string: "https://login.microsoftonline.com/469fdeb4-d4fd-4fde-991e-308a78e4bea4") else {
216+
guard let authorityURL = URL(string: "https://login.microsoftonline.com/contoso.onmicrosoft.com") else {
213217
//Handle error
214218
return
215219
}

0 commit comments

Comments
 (0)