Url with Query String
Below is the function we are using to call the B2C URL
func getAuthority(forPolicy policy: String) throws -> MSALB2CAuthority {
guard let authorityURL = URL(string: String(format: kEndpoint, kAuthorityHostName, kTenantName, policy)) else {
throw NSError(domain: "SomeDomain",
code: 1,
userInfo: ["errorDescription": "Unable to create authority URL!"])
}
let p1 = "[https://dqtechb2c.b2clogin.com/tfp/dqtechb2c.onmicrosoft.com/B2C_1A_V2_Client_Si?customerApp=Santosh-7-Stage"](https://dqtechb2c.b2clogin.com/tfp/dqtechb2c.onmicrosoft.com/B2C_1A_V2_Client_Si?customerApp=Santosh-7-Stage%22)
let fileUrl = URL(string: p1)!
return try MSALB2CAuthority(url: fileUrl)
}
Getting error Username and Password is incorrect.
when we use the same username and password with the policy that didn’t required the query string it just worked.
I think the issue is we are not able to pass the query string in the URL with the policy name