►
From YouTube: OAuth2 support in Glab CLI (POC)
Description
This is a demo of the OAuth2 support in the CLI.
Issue: https://gitlab.com/gitlab-org/cli/-/issues/1149
MR: https://gitlab.com/gitlab-org/cli/-/merge_requests/1210
A
Hi
I
wanted
to
talk
to
you
about
an
MR
I've
been
working
on,
so
I've
been
working
on,
trying
to
add
or
to
support
to
the
CLI.
A
So
essentially
earlier
you
could
only
log
in
with
the
your
personal
access,
token
or
bat,
but
what
I've
done
is
now
added
support
to
be
able
to
log
in
Via
oauth
as
well.
So
now,
if
you
do
g-lab
auth
login
and
you
decide,
which
instance
you
want
to
log
into
it,
will
ask
you
whether
you
want
to
login
with
a
token
or
via
the
web.
A
A
My
journey
of
of
logging
in
I
can
select
my
default
git
protocol,
as
you
can
do
today
and
then
I'm
logged
in
so
essentially
now,
if
I
run
a
command
like
Mr
list,
it
actually
shows
me
a
list
of
Mrs
using
my
access
token,
which
it's
obtained
through
oauth
I'm
using
Pixi
with
oauth.
So
that's
that's.
Making
sure
we
only
are
using
our
client
ID
question
for
the
maintainer
is
that
how
do
we
generate
this
client
ID
and
store
it?
A
So
we
just
need
to
figure
that
out,
but
otherwise,
so
when
you
do
Mr
list,
it's
it's
using
your
specific
authentication
token
you
can
also
so
if
I
actually
go
ahead
and
edit
it
so
that
I
expire.
The
token
excuse
me
Effects
by
the
token
you
can
see
that
once
tokens
expired,
if
I
run
Mr
list
again,
it
says
or
tokens
expired
and
it
regenerates
the
token
now.
This
is
just
a
temporary
log
statement.
I've
used
just
to
show
that
I'm
I'm,
actually
refreshing.
The
token
in
the
main
version
will
remove
this.