{# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -#} Device sign-in - Apache Gravitino MCP Gateway
{% if error %}
{{ error }}
{% endif %} {% if success %}
{{ success }}
{% elif entry %}
Signed in as {{ user.username }}
Code
{{ entry.user_code }}
{# What the requester says of itself: anyone can say they are the CLI. #}
Says it is
{{ client_name }}
From
{{ entry.requested_from or "an unknown address" }}{% if entry.requested_by_agent %}, which says it runs {{ entry.requested_by_agent }}{% endif %}
At
{{ entry.created_at.strftime("%Y-%m-%d %H:%M:%S") }} UTC
Approve only a code you just got from your own CLI. Approving gives whoever asked for this code your gateway sign-in, with which they can call MCP servers as you. If someone sent you this code or a link to this page, deny it.
{% else %}
Signed in as {{ user.username }}
Type the code your CLI shows, then check the request before you approve it.
{% endif %}