Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@datafire/google_oslogin
Advanced tools
Readme
Client library for Cloud OS Login API
npm install --save @datafire/google_oslogin
let google_oslogin = require('@datafire/google_oslogin').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
You can use OS Login to manage access to your VM instances using IAM roles.
Exchange the code passed to your redirect URI for an access_token
google_oslogin.oauthCallback({
"code": ""
}, context)
object
string
object
string
string
string
string
string
Exchange a refresh_token for an access_token
google_oslogin.oauthRefresh(null, context)
This action has no parameters
object
string
string
string
string
string
Deletes an SSH public key.
google_oslogin.oslogin.users.sshPublicKeys.delete({
"name": ""
}, context)
object
string
: Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Retrieves an SSH public key.
google_oslogin.oslogin.users.sshPublicKeys.get({
"name": ""
}, context)
object
string
: Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Updates an SSH public key and returns the profile information. This method supports patch semantics.
google_oslogin.oslogin.users.sshPublicKeys.patch({
"name": ""
}, context)
object
string
: Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format users/{user}/sshPublicKeys/{fingerprint}
.string
: Mask to control which fields get updated. Updates all if not present.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.
google_oslogin.oslogin.users.getLoginProfile({
"name": ""
}, context)
object
string
: Required. The unique ID for the user in format users/{user}
.string
: The project ID of the Google Cloud Platform project.string
: A system ID for filtering the results of the request.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.
google_oslogin.oslogin.users.importSshPublicKey({
"parent": ""
}, context)
object
string
: The unique ID for the user in format users/{user}
.string
: The project ID of the Google Cloud Platform project.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").object
: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty
is empty JSON object {}
.object
: A response message for importing an SSH public key.
string
: Detailed information about import results.object
: The user profile information used for logging in to a virtual machine on Google Compute Engine.
string
: Required. A unique user ID.array
: The list of POSIX accounts associated with the user.
object
: A map from SSH public key fingerprint to the associated key object.object
: The POSIX account information associated with a Google account.
string
: Output only. A POSIX account identifier.string
: The GECOS (user information) entry for this account.string
: The default group ID.string
: The path to the home directory for this account.string
: Output only. The canonical resource name.string
(values: OPERATING_SYSTEM_TYPE_UNSPECIFIED, LINUX, WINDOWS): The operating system type where this account applies.boolean
: Only one POSIX account can be marked as primary.string
: The path to the logic shell for this account.string
: System identifier for which account the username or uid applies to. By default, the empty value is used.string
: The user ID.string
: The username of the POSIX account.object
: The SSH public key information associated with a Google account.
string
: An expiration time in microseconds since epoch.string
: Output only. The SHA-256 fingerprint of the SSH public key.string
: Public key text in SSH format, defined by RFC4253 section 6.6.string
: Output only. The canonical resource name.FAQs
DataFire integration for Cloud OS Login API
The npm package @datafire/google_oslogin receives a total of 2 weekly downloads. As such, @datafire/google_oslogin popularity was classified as not popular.
We found that @datafire/google_oslogin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.