How can I modify the 'oauth/token' controller of Gitlab source code?

Viewed 25

Recently, I build a self-managed Gitlab instance via gitlab-development-kit.

I used the database migration to added a payload(string) column to the Users table. And I want to add the 'payload' to the response of requests to '/oauth/token'.

I did a full text search for the string '/oauth/token' in Gitlab's source code and it seems like there are only two ruby file including the string:

enter image description here

You can find these two file here: application.rb and routes.rb

I'm new to ruby and ruby on rails. I'm confused about the via: :options since in the ruby on rails documents, the value of the via always be all or post/get

My point is if the via here is options, how does the /oauth/token api receive a POST or GET request?

0 Answers
Related