

Snapcraft experimental login – new, secure Web-based authentication me...
source link: https://snapcraft.io//blog/snapcraft-experimental-login-new-secure-web-based-authentication-method
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Snapcraft experimental login – new, secure Web-based authentication method
by Igor Ljubuncic on 20 October 2021
Some Snapcraft operations mandate that users identify themselves. For example, if you want to push your snap to the Snap Store, you need to login on the command line. The process relies on the internal login mechanism built into Snapcraft.
A preview functionality for a new Web-based authentication flow is available as an experimental feature in Snapcraft since release 4.6. This allows you to complete the login process in a simple, secure manner using the browser, and extends the macaroon-based authentication currently in use.
Get started
To try the experimental login feature, make sure you have the relevant release of Snapcraft installed. The easiest way is to refresh Snapcraft from the edge channel. Then, on the command line, your login procedure will look like this:
snapcraft login --experimental-login
Opening an authorization web page in your browser.
If it does not open, please open this URL:
https://api.jujucharms.com/identity/login?did=c0cf2e16bc2244001945a6b3fe6d56c4e35a8401a3678ecff9fce89ef6cd2583
Snapcraft should forward the query to your default browser and open the login page, where you can then identify. This could be Ubuntu SSO, optional MFA, and any other methods that you would use. Once you complete the authentication, you will see another line printed on the command line.
Login successful.
If you do not wish to use the experimental login feature anymore, you first need to logout and have the credentials cleared, and then, you can go back to the standard login process.
snapcraft logout
Credentials cleared.
In scenarios where the Web-based access may be restricted, developers can export the credentials with the export-login [file] command, and then use them on other systems by passing on the –with creds-file option to snapcraft login.
Summary
The experimental login allows Snapcraft users to authenticate through a Web-based flow. This provides extensibility and security that goes beyond the classic command-line login. However, in some scenarios, the Web-based method may not be ideal or available, which is why Snapcraft also allows the export of credentials, offering additional flexibility to the users. If you’d like to test the feature and provide feedback, please take Snapcraft for a spin, join our forum, and let us know your findings.
Recommend
-
28
Linux 一直在发展。过去,开发人员必须分别为不同的 Linux 发行版构建应用。由于存在多种 Linux 变体,因此为所有发行版构建应用变得很繁琐,...
-
31
GNU Emacs ...
-
12
Official snaps from major publishers “The auto-updating feature is huge” Due to the nature of our...
-
5
Official snaps from major publishers “The auto-updating feature is huge” Due to the nature of our platform, we release updates more than daily which adm...
-
10
SMS-based Two-Factor Authentication is not Secure SMS-based Two-Factor Authentication is not Secure 311 points by Zolt
-
3
解决Snapcraft的方框字问题 从snap安装的软件经常会出现文字显示为方框的情况,目前发现一个比较有效...
-
12
Snapcraft offline mode – Build snaps while saving data by Igor Ljubuncic on 12 November 2021 As part of the snap creation cycle, the Snapcraft tool creates isolated build instances inside which all of the necessar...
-
4
The Future of Snapcraft by Igor Ljubuncic on 7 January 2022 System hysteresis, when applied to software, can roughly be defined as an overall lag between desired implementation of code and actual imple...
-
8
Let’s build a snap together – a complex snapcraft.yaml walkthrough by Igor Ljubuncic on 21 January 2022 It has been a while since we talked about how to build snaps. In the past, we went through a number of detail...
-
2
Craft Parts – Reusable code, Snapcraft style by Igor Ljubuncic on 26 November 2021 Throughout the ages, humans have always used simpler tools and materials to create more complex ones. Wood and stone for smelting...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK