Clarification Needed on Token for GitLab Trigger Pipeline

MasakiO
Tera Contributor

I would like to use a trigger pipeline with GitLab.
(note that we do not have a contract for Integration Hub)

The OAuth2 authentication setup (application registration) has already been completed.

 

I plan to make a POST request using the information from the following site:
https://docs.gitlab.com/ci/triggers/

 

In this documentation, it mentions "token=<token>".

Could you please clarify which "token" should be specified here?

7 REPLIES 7

Najmuddin Mohd
Mega Sage

Hello @MasakiO 

Token is provided by the Gitlab team. It is something like an API Key.
https://docs.gitlab.com/user/project/settings/project_access_tokens/

Regards,
Najmuddin.

MasakiO
Tera Contributor

Thanks for the comment.


What you taught me is “access token”.

I checked with the Gitlab techs separately.
You can get the access token by running the following
However, “STATE” needs to be set to the word generated from PKCE on the ServiceNow side.

 

https://gitlab.example.com/oauth/authorize?client_id=APP_ID&redirect_uri=REDIRECT_URI&response_type=... REQUESTED_SCOPES

Can you please tell me the following?

 

1. How to generate the PKCE
2. How to set the generated word to “STATE

Translated with DeepL.com (free version)

Hi @MasakiO 

 

https://www.youtube.com/watch?v=OVnXCy18Q8k

 

From: 17:00 .. it might be helpful.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hello @MasakiO ,

I do not set anything like PKCE.

Just create REST Message and add their End point with the TOKEN and Variables. 
Test It.

Once working, call this Rest message from the flow passing the variables and token.

If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.