-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi Andy, I'm very excited about this project as it was exactly what I was looking for. But I have been struggling with getting JIRA to authenticate for a while now and haven't made much progress with your library either.
Here is my code so far:
let configuration = JiraAPIClient.Configuration(
isAuthorizationEphemeral: true,
clientID: "X9xXXXXxXXXxXxXX6xXxX5XXXxxxxXxX",
clientSecret: "xXxxx67Xx6XXXx_xxXXX_-x6xxXXX-7X7xXX_xXxXX5Xx6XX6XxXx_xxxxxXxx7x",
scopes: ["write:jira-work"],
callbackURLScheme: "https",
callbackURLHost: "www.ambrit.com",
userBoundValue: "boundvalue"
)
let logger = Logger(subsystem: "com.andrewwebb.jira", category: "JIRA")
let jiraAPI = JiraAPIClient(configuration: configuration, logger: logger, authLogger: logger)
let j = jiraAPI.signIn()
When I run this all I get is:
2021-05-03 17:46:29.683765+0100 JIRA[4385:395134] [JIRA] SignIn started
2021-05-03 17:46:29.683873+0100 JIRA[4385:395134] [JIRA] Authorization code fetch started
And that is it.
I must admit I do not fully understand the role of the callbackURL is in this and why that gets pointed to a web page rather than something the app can retrieve.
I would be grateful if you could throw some pointers my way. I'm very happy to help you test your library.
Thanks
Andrew