Open ZioHimself opened 7 years ago
Hello, @ViktoriaSl , could I ask you to replace the <To Be Elaborated On>
with actual info?
Regards, Serhiy.
Hello @ZioHimself!
having:
sbt run
http://localhost:9000
ngrok http 9000
https://simple-add-on.atlassian.net
with:
5.1 username: admin
5.2 password: admin123
Upload add-on
https://5b47c2bf.ngrok.io
as value to the From this URL
input like 'https://5b47c2bf.ngrok.io/atlassian-connect.json'(Simplified version): the request is successfully authenticated (Full version): add-on validates input request and prints 'Correct number!' result in web panel 'Number Field Validation Panel'
add-on validates input request and prints 'Error' result in web panel 'Number Field Validation Panel' service logs: [debug] application - Generated Jwt authorisation header: 'JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInFzaCI6IjFlNzBjYjc0ZjM4NWZkN2QzYjg0YTRhODIwMDc1MDFjZTNjZmZjYmYwODU5NTVmNzY1NmJiY2FmZThiYTAxZDkiLCJpc3MiOiJfYWRkLW9uX2tleSIsImV4cCI6MTQ4Mj E3ODQ2NywiaWF0IjoxNDgyMTc4Mjg3fQ.B2L3hycHxu4JlSOWPm0JDXllGWTlS8ztLUbTN4nXz7Y' [info] application - Error response from JIRA. Status code: 401. Status text: Unauthorized. Body:
Hello Again, Viktoria. Thanks for the elaborate answer, I'm afraid I'm facing the troubles even at step 1 Just to be sure, did you have to resolve any dependency problems?
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.typesafe.sbt#sbt-twirl;1.0.2: not found
[warn] :: com.typesafe.sbt#sbt-native-packager;0.7.4: not found
[warn] :: com.typesafe.sbt#sbt-js-engine;1.0.1: not found
[warn] :: com.typesafe.sbt#sbt-webdriver;1.0.0: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
I'll try to fix that by feeding other versions. Regards, Serhiy.
Hello @ZioHimself ! No, I don't have problems like this... I will clean /.ivy2/cache at my windows profile just to make sure that everything is correct and than I write you about the results
I've just attempted to validate manually the token
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsInFzaCI6IjFlNzBjYjc0ZjM4NWZkN2QzYjg0YTRhODIwMDc1MDFjZTNjZmZjYmYwODU5NTVmNzY1NmJiY2FmZThiYTAxZDkiLCJpc3MiOiJfYWRkLW9uX2tleSIsImV4cCI6MTQ4MjE3ODQ2NywiaWF0IjoxNDgyMTc4Mjg3fQ
And it seems, that ac-connect framework generates the wrong issuer for your jwt token: "iss":"_add-on_key"
while your add-on's key in https://github.com/ViktoriaSl/simple-add-on/blob/master/atlassian-connect.json
is "field-validation-addon"
But I would not claim this to be the root cause of the problem though, it would be nice to have a good way to reproduce the issue on our environment.
Environment:
<To Be Elaborated On>
For example:
having:
Scenario (Steps to reproduce):
<To Be Elaborated On>
For example:
sbt -Dconfig.file=conf/development-h2.conf run
http://localhost:9000
ngrok http 9000
https://b311d1d8.ngrok.io
)https://exalatedevserhiy.atlassian.net
with: 1.1 username:admin
1.2 password:admin
https://exalatedevserhiy.atlassian.net/plugins/servlet/upm
Settings
Enable development mode
optionApply
Upload add-on
https://b311d1d8.ngrok.io
as value to theFrom this URL
inputUpload
http://localhost:9000/poller
Expected:
(Simplified version): the request is successfully authenticated (Full version):
<To Be Elaborated On>
Actual:
<To Be Elaborated On>