Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
amps-kerberos-authenticator
Advanced tools
Readme
npm install --save amps-kerberos-authenticator
amps-kerberos-authenticator
depends on the amps
and kerberos
packages. In case of the installation from NPM,
all the dependencies are installed automatically.
AMPS SPN (for example, AMPS/host.domain.com
)
Optionally set Kerberos environment variables
KRB5_CONFIG
set to a krb5.conf file that will override the default (the default is /etc/krb5.conf
on linux)KRB5_CLIENT_KTNAME
set to a KeyTab for the user you want to authentication asIn Node.js, environment variables can be set in the source code:
process.env['KRB5_CONFIG'] = '/path/to/krb5.conf';
process.env['KRB5_CLIENT_KTNAME'] = '/path/to/client_name.keytab';
For Kerberos authentication using JavaScript there is a single class, AMPSKerberosAuthenticator
,
for authentication in Node.js environment.
const Client = require('amps').Client;
const AMPSKerberosAuthenticator = require('amps-kerberos-authenticator').AMPSKerberosAuthenticator;
async function main() {
const client = new Client('demo');
// connection credentials
const login = 'username';
const port = 10304;
const hostName = 'hostname';
const uri = `ws://${login}@${hostName}:${port}/amps/json`;
const spn = `AMPS/${hostName}`;
try {
// connect
await client.connect(uri, new AMPSKerberosAuthenticator(spn));
}
catch (err) {
console.error('err: ', err);
}
}
main();
Kerberos Authentication Blog Article
libamps_multi_authentication AMPS Server Module
FAQs
AMPS Kerberos Authenticator
The npm package amps-kerberos-authenticator receives a total of 6 weekly downloads. As such, amps-kerberos-authenticator popularity was classified as not popular.
We found that amps-kerberos-authenticator 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.